OpenWrt_Luci_Lua/1_3.test_code/c_test/testMainArgv/testMainArgv.c

19 lines
551 B
C
Raw Permalink Normal View History

2015-07-29 12:31:49 +00:00
/*************************************************************************
2016-01-28 10:15:25 +00:00
> File Name: main.c
2015-07-29 12:31:49 +00:00
> Description:
> Conclusion:
> Author: rh_Jameson
2016-01-28 10:15:25 +00:00
> Created Time: 20160113 145150
2015-07-29 12:31:49 +00:00
************************************************************************/
#include <stdio.h>
int main(int argc,char *argv[])
{
printf("参数个数= %d\n", argc);
printf("参数1= %s\n", argv[1]);
printf("参数2= %s\n", argv[2]);
printf("参数3= %s\n", argv[3]);
return 0;
}