Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/win32/libc_interface.c Fri Apr 11 21:23:02 2003 +0000 +++ b/src/win32/libc_interface.c Sat Apr 12 00:10:45 2003 +0000 @@ -341,3 +341,15 @@ } } + +/* time.h */ + +struct tm * wgaim_localtime_r (const time_t *time, struct tm *resultp) { + struct tm* tmptm; + + tmptm = localtime(time); + if(resultp && tmptm) + return memcpy(resultp, tmptm, sizeof(struct tm)); + else + return NULL; +}
