StudyingUnixInterface/8/fork/echoarg.c

9 lines
149 B
C
Raw Permalink Normal View History

2020-12-27 13:27:27 +00:00
#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;
}