/*****************************************************
copyright (C), 2014-2015, Lighting Studio. Co., Ltd.
File name:
Author:Jerey_Jobs Version:0.1 Date:
Description:
Funcion List:
*****************************************************/
copyright (C), 2014-2015, Lighting Studio. Co., Ltd.
File name:
Author:Jerey_Jobs Version:0.1 Date:
Description:
Funcion List:
*****************************************************/
#include <stdio.h>
int main(int argc,char *argv[],char *env[])
{
int i; //定义循环变量i
{
int i; //定义循环变量i
printf("argc = %d \n",argc);
printf("*argv[] : "); //利用循环输出argv数组中所有的字符串
for(i = 1;i < argc;i++)
{
printf("%s ",argv[i]);
}
printf("\n*env[] : \n"); //利用循环输出env数组中多有的环境变量
i = 0;
while(env[i] != NULL)
{
printf("%s\n",env[i++]);
}
printf("\n");
return 0;
}
printf("*argv[] : "); //利用循环输出argv数组中所有的字符串
for(i = 1;i < argc;i++)
{
printf("%s ",argv[i]);
}
printf("\n*env[] : \n"); //利用循环输出env数组中多有的环境变量
i = 0;
while(env[i] != NULL)
{
printf("%s\n",env[i++]);
}
printf("\n");
return 0;
}