Changeset 488ebf6
- Timestamp:
- Mar 29, 2009, 3:48:44 PM (15 years ago)
- Branches:
- owl
- Children:
- c4b45ce
- Parents:
- 19c0c55
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r2b23a36a r488ebf6 1250 1250 FILE *file; 1251 1251 time_t now; 1252 char buff1[LINE], buff2[LINE]; 1252 char buff1[LINE]; 1253 char *buff2; 1253 1254 va_list ap; 1254 1255 va_start(ap, fmt); … … 1263 1264 buff1[strlen(buff1)-1]='\0'; 1264 1265 1265 owl_global_get_runtime_string(&g, buff2);1266 buff2=owl_global_get_runtime_string(&g); 1266 1267 1267 1268 fprintf(file, "[%i - %s - %s]: ", (int) getpid(), buff1, buff2); … … 1269 1270 fprintf(file, "\n"); 1270 1271 fclose(file); 1271 1272 owl_free(buff2); 1273 1272 1274 va_end(ap); 1273 1275 } -
global.c
rfa00c5c r488ebf6 468 468 } 469 469 470 void owl_global_get_runtime_string(owl_global *g, char *buff) {470 char *owl_global_get_runtime_string(owl_global *g) { 471 471 time_t diff; 472 472 … … 474 474 475 475 /* print something nicer later */ 476 sprintf(buff, "%i seconds", (int) diff);476 return(owl_sprintf("%i seconds", (int) diff)); 477 477 } 478 478
Note: See TracChangeset
for help on using the changeset viewer.