#include "apue.h" 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); }
时间: 2024-10-11 14:29:37
#include "apue.h" 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); }