URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 39 |
Rev 56 |
Line 41... |
Line 41... |
|
|
<<localtime>> requires no supporting OS subroutines.
|
<<localtime>> requires no supporting OS subroutines.
|
*/
|
*/
|
|
|
#include <time.h>
|
#include <time.h>
|
|
#include <reent.h>
|
|
|
#ifndef _REENT_ONLY
|
#ifndef _REENT_ONLY
|
|
|
struct tm *
|
struct tm *
|
_DEFUN (localtime, (tim_p),
|
_DEFUN (localtime, (tim_p),
|
_CONST time_t * tim_p)
|
_CONST time_t * tim_p)
|
{
|
{
|
static struct tm tim_s;
|
return localtime_r (tim_p, &(_REENT->_new._reent._localtime_buf));
|
return localtime_r (tim_p, &tim_s);
|
|
}
|
}
|
|
|
#endif
|
#endif
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.