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 46... |
Line 46... |
|
|
<<asctime>> requires no supporting OS subroutines.
|
<<asctime>> requires no supporting OS subroutines.
|
*/
|
*/
|
|
|
#include <time.h>
|
#include <time.h>
|
|
#include <_ansi.h>
|
|
#include <reent.h>
|
|
|
#ifndef _REENT_ONLY
|
#ifndef _REENT_ONLY
|
|
|
char *
|
char *
|
_DEFUN (asctime, (tim_p),
|
_DEFUN (asctime, (tim_p),
|
_CONST struct tm *tim_p)
|
_CONST struct tm *tim_p)
|
{
|
{
|
static char buf[26];
|
char *buf = _REENT->_new._reent._asctime_buf;
|
return asctime_r (tim_p, buf);
|
return asctime_r (tim_p, buf);
|
}
|
}
|
|
|
#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.