OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [time/] [gmtime_r.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/*
2
 * gmtime_r.c
3
 */
4
 
5
#include <time.h>
6
 
7
#define _GMT_OFFSET 0
8
 
9
struct tm *
10
_DEFUN (gmtime_r, (tim_p, res),
11
        _CONST time_t * tim_p _AND
12
        struct tm *res)
13
{
14
  time_t tim = *tim_p + _GMT_OFFSET;
15
 
16
  return (localtime_r (&tim, res));
17
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.