added ctime_r
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9975 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,3 +12,13 @@ ctime(const time_t *_timer)
|
|||||||
{
|
{
|
||||||
return asctime(localtime(_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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user