StudyingUnixInterface/8/fork/echoarg.c
2020-12-27 21:27:27 +08:00

9 lines
149 B
C

#include <stdio.h>
int main(int argc, char *argv[]) {
for(int i = 0; i < argc; i++) {
printf("Arg[%d] = %s\n", i, argv[i]);
}
return 0;
}