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

20 lines
591 B
C
Raw Normal View History

2015-07-29 12:31:49 +00:00
/*************************************************************************
> File Name: testMainArgv.c
> Description:
> Conclusion:
> Author: rh_Jameson
> Created Time: 20150714 125950
************************************************************************/
#include <stdio.h>
#include <stdlib.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;
}