1
0
This commit is contained in:
Daniel Tartavel 2020-05-08 14:29:29 +02:00
parent 9f8be6cf60
commit df1087936a

3
main.c
View File

@ -242,8 +242,9 @@ int main()
char str[1024]; char str[1024];
char date[60]; char date[60];
time_t now ; time_t now ;
char * locale;
setlocale(LC_ALL,NULL); locale = setlocale(LC_ALL,NULL);
time( &now ); time( &now );
sprintf( date, "%s", ctime(&now)); sprintf( date, "%s", ctime(&now));
date[strlen(date)-1] = 0; date[strlen(date)-1] = 0;