added ctime_r

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9975 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-11-16 11:24:35 +00:00
parent d2b3371adc
commit b5027c0e2b
+10
View File
@@ -12,3 +12,13 @@ ctime(const time_t *_timer)
{
return asctime(localtime(_timer));
}
char *
ctime_r(const time_t *_timer, char *buf)
{
struct tm tm;
return asctime_r(localtime_r(_timer, &tm), buf);
}