Changeset 488ebf6 for global.c


Ignore:
Timestamp:
Mar 29, 2009, 3:48:44 PM (15 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
owl
Children:
c4b45ce
Parents:
19c0c55
Message:
change owl_global_get_runtime_string to return a string to free
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rfa00c5c r488ebf6  
    468468}
    469469
    470 void owl_global_get_runtime_string(owl_global *g, char *buff) {
     470char *owl_global_get_runtime_string(owl_global *g) {
    471471  time_t diff;
    472472
     
    474474
    475475  /* print something nicer later */   
    476   sprintf(buff, "%i seconds", (int) diff);
     476  return(owl_sprintf("%i seconds", (int) diff));
    477477}
    478478
Note: See TracChangeset for help on using the changeset viewer.