Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
First step to return value on storage model.
[simgrid.git] / win32_test_app / src / TTime.c
index 97511a8..1094d22 100644 (file)
@@ -1,12 +1,13 @@
 #include <TTime.h>
 
-void __time(chart)
+void __time(char *t)
 {
 
-       time_t timer;
-       struct tm *tblock;
-       timer = time(NULL);
-       tblock = localtime(&timer);
-       
-       sprintf(t,"%02d/%02d/%d  %02d:%02d",tblock->tm_mday,tblock->tm_mon,tblock->tm_year + 1900,tblock->tm_hour,tblock->tm_min);
-}
\ No newline at end of file
+  time_t timer;
+  struct tm *tblock;
+  timer = time(NULL);
+  tblock = localtime(&timer);
+
+  sprintf(t, "%02d/%02d/%d  %02d:%02d", tblock->tm_mday, tblock->tm_mon,
+          tblock->tm_year + 1900, tblock->tm_hour, tblock->tm_min);
+}