debug
This commit is contained in:
parent
4ff76b1392
commit
d3da26f037
10
main.c
10
main.c
@ -212,7 +212,7 @@ int getprocinfo( int ppid, char cmdline[], char cmd[], char user[], char host_ip
|
||||
return retval;
|
||||
}
|
||||
|
||||
int main()
|
||||
int main(int argc,char **argv,char** envp)
|
||||
{
|
||||
FILE *fh;
|
||||
FILE *fh1;
|
||||
@ -243,6 +243,14 @@ int main()
|
||||
char date[60];
|
||||
time_t now ;
|
||||
char * locale;
|
||||
|
||||
char** env;
|
||||
for(env=envp;*env!=0;env++)
|
||||
{
|
||||
char* thisEnv = *env;
|
||||
printf("%s\n",thisEnv);
|
||||
}
|
||||
|
||||
locale = setlocale(LC_ALL,"");
|
||||
locale = setlocale(LC_ALL,NULL);
|
||||
time( &now );
|
||||
|
Reference in New Issue
Block a user