diff --git a/main.c b/main.c index e3c996f..6fdb497 100644 --- a/main.c +++ b/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 );