URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 1010 |
Rev 1765 |
/*
|
/*
|
* gmtime_r.c
|
* gmtime_r.c
|
*/
|
*/
|
|
|
#include <time.h>
|
#include <time.h>
|
|
|
#define _GMT_OFFSET 0
|
#define _GMT_OFFSET 0
|
|
|
struct tm *
|
struct tm *
|
_DEFUN (gmtime_r, (tim_p, res),
|
_DEFUN (gmtime_r, (tim_p, res),
|
_CONST time_t * tim_p _AND
|
_CONST time_t * tim_p _AND
|
struct tm *res)
|
struct tm *res)
|
{
|
{
|
time_t tim = *tim_p + _GMT_OFFSET;
|
time_t tim = *tim_p + _GMT_OFFSET;
|
|
|
return (localtime_r (&tim, res));
|
return (localtime_r (&tim, res));
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.