Subversion Repositories Kolibri OS

Rev

Rev 4874 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /*
  2.  * localtime_r.c
  3.  *
  4.  * Converts the calendar time pointed to by tim_p into a broken-down time
  5.  * expressed as local time. Returns a pointer to a structure containing the
  6.  * broken-down time.
  7.  */
  8.  
  9. #include <time.h>
  10. #include "local.h"
  11.  
  12. struct tm *
  13. _DEFUN (localtime_r, (tim_p, res),
  14.         _CONST time_t *__restrict tim_p _AND
  15.         struct tm *__restrict res)
  16. {
  17.   return _mktm_r (tim_p, res, 0);
  18. }
  19.