From d3da26f037c9f651a02f6cf2cbd782deed6ccc9a Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 8 May 2020 14:51:57 +0200 Subject: [PATCH] debug --- main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 );