1
0
This commit is contained in:
Daniel Tartavel 2020-05-08 15:27:06 +02:00
parent d3da26f037
commit 477ba6cddc

13
main.c
View File

@ -243,16 +243,13 @@ int main(int argc,char **argv,char** envp)
char date[60];
time_t now ;
char * locale;
char * language;
char * ptr;
char** env;
for(env=envp;*env!=0;env++)
{
char* thisEnv = *env;
printf("%s\n",thisEnv);
}
language = getenv("LANGUAGE");
ptr = strtok (language, ":");
locale = setlocale(LC_ALL,"");
locale = setlocale(LC_ALL,NULL);
locale = setlocale(LC_ALL,ptr);
time( &now );
sprintf( date, "%s", ctime(&now));
date[strlen(date)-1] = 0;