1
0
This commit is contained in:
Daniel Tartavel 2020-05-08 14:14:24 +02:00
parent 291fb37ca5
commit 8797b9ce9c

2
main.c
View File

@ -38,7 +38,7 @@ char* frtime(const time_t timet)
}; };
static char result[40]; static char result[40];
date_tm = localtime(&timet); date_tm = localtime(&timet);
strftime(result, 4, "%c", date_tm); strftime(result, 40, "%c", date_tm);
jour = atoi(result); jour = atoi(result);
strftime(result, 40, "%d/%m/%y à %x", date_tm); strftime(result, 40, "%d/%m/%y à %x", date_tm);
sprintf(result, "%d %s", jour, result); sprintf(result, "%d %s", jour, result);