Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless double parentheses in function calls.
[simgrid.git] / win32_test_app / src / TTime.c
1 #include <TTime.h>
2
3 void __time(char *t)
4 {
5
6   time_t timer;
7   struct tm *tblock;
8   timer = time(NULL);
9   tblock = localtime(&timer);
10
11   sprintf(t, "%02d/%02d/%d  %02d:%02d", tblock->tm_mday, tblock->tm_mon,
12           tblock->tm_year + 1900, tblock->tm_hour, tblock->tm_min);
13 }