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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [time/] [asctime.c] - Diff between revs 39 and 56

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

powered by: WebSVN 2.1.0

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