mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2025-06-22 19:10:38 +00:00
add test code about c & sh
This commit is contained in:
BIN
1_3.test_code/c_test/testMainArgv/testMainArgv
Executable file
BIN
1_3.test_code/c_test/testMainArgv/testMainArgv
Executable file
Binary file not shown.
19
1_3.test_code/c_test/testMainArgv/testMainArgv.c
Normal file
19
1_3.test_code/c_test/testMainArgv/testMainArgv.c
Normal file
@ -0,0 +1,19 @@
|
||||
/*************************************************************************
|
||||
> File Name: testMainArgv.c
|
||||
> Description:
|
||||
> Conclusion:
|
||||
> Author: rh_Jameson
|
||||
> Created Time: 2015年07月14日 星期二 12时59分50秒
|
||||
************************************************************************/
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user