Mercurial > pidgin
comparison src/win32/libc_interface.c @ 5113:bac62d8d386f
[gaim-migrate @ 5476]
Added localtime_r
committer: Tailor Script <tailor@pidgin.im>
| author | Herman Bloggs <hermanator12002@yahoo.com> |
|---|---|
| date | Sat, 12 Apr 2003 00:10:45 +0000 |
| parents | a96653493416 |
| children | 0b355ec51083 |
comparison
equal
deleted
inserted
replaced
| 5112:463b03cd8c90 | 5113:bac62d8d386f |
|---|---|
| 339 errno = ENOENT; | 339 errno = ENOENT; |
| 340 return -1; | 340 return -1; |
| 341 } | 341 } |
| 342 | 342 |
| 343 } | 343 } |
| 344 | |
| 345 /* time.h */ | |
| 346 | |
| 347 struct tm * wgaim_localtime_r (const time_t *time, struct tm *resultp) { | |
| 348 struct tm* tmptm; | |
| 349 | |
| 350 tmptm = localtime(time); | |
| 351 if(resultp && tmptm) | |
| 352 return memcpy(resultp, tmptm, sizeof(struct tm)); | |
| 353 else | |
| 354 return NULL; | |
| 355 } |
