newlib-cygwin/newlib/libc/time/gmtime_r.c

18 lines
231 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/*
* gmtime_r.c
*/
#include <time.h>
#define _GMT_OFFSET 0
struct tm *
_DEFUN (gmtime_r, (tim_p, res),
_CONST time_t * tim_p _AND
struct tm *res)
{
time_t tim = *tim_p + _GMT_OFFSET;
return (localtime_r (&tim, res));
}