| 8400:09cd5dba5ca4 | 8401:9fe6cadf2581 |
|---|---|
| 28 | 28 |
| 29 time_t str_to_time(const char *timestamp) | 29 time_t str_to_time(const char *timestamp) |
| 30 { | 30 { |
| 31 struct tm t; | 31 struct tm t; |
| 32 time_t retval = 0; | 32 time_t retval = 0; |
| 33 char buf[32]; | 33 char buf[32]; |
| 34 char *c; | 34 char *c; |
| 35 int tzoff = 0; | 35 int tzoff = 0; |
| 36 | 36 |
| 37 time(&retval); | 37 time(&retval); |
| 38 localtime_r(&retval, &t); | 38 localtime_r(&retval, &t); |
| 317 return c; | 317 return c; |
| 318 } | 318 } |
| 319 | 319 |
| 320 return NULL; | 320 return NULL; |
| 321 } | 321 } |
| 322 |