|
|
1.1 root 1: /*
2: * Benchmark utility to sum up
3: * the total number of bytes passed
4: * in the environment on an exec.
5: */
6:
7: main(argc, argv, envp)
8: char *argv[], *envp[];
9: {
10: register char **p;
11: register int n;
12:
13: n = 0;
14: for (p = envp; *p && *p != (char *)-1; p++)
15: n += strlen(*p);
16: printf("%d bytes\n", n);
17: exit(0);
18: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.