/* * This is taken from p. 166 of Stevens * * Echo all command-line arguments to standard output */ #include int main (int argc, char *argv[]) { int i; for (i = 0; i < argc; i++) /* echo all command-line args */ printf("argv[%d]: %s\n", i, argv[i]); exit(0); }