forked from KolibriOS/kolibrios
upload sdk
git-svn-id: svn://kolibrios.org@4349 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
18
contrib/sdk/sources/newlib/time/lcltime_r.c
Normal file
18
contrib/sdk/sources/newlib/time/lcltime_r.c
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* localtime_r.c
|
||||
*
|
||||
* Converts the calendar time pointed to by tim_p into a broken-down time
|
||||
* expressed as local time. Returns a pointer to a structure containing the
|
||||
* broken-down time.
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
#include "local.h"
|
||||
|
||||
struct tm *
|
||||
_DEFUN (localtime_r, (tim_p, res),
|
||||
_CONST time_t * tim_p _AND
|
||||
struct tm *res)
|
||||
{
|
||||
return _mktm_r (tim_p, res, 0);
|
||||
}
|
Reference in New Issue
Block a user