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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [time/] [ctime_r.c] - Diff between revs 40 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 40 Rev 1765
/*
/*
 * ctime_r.c
 * ctime_r.c
 */
 */
 
 
#include <time.h>
#include <time.h>
 
 
char *
char *
_DEFUN (ctime_r, (tim_p, result),
_DEFUN (ctime_r, (tim_p, result),
        _CONST time_t * tim_p _AND
        _CONST time_t * tim_p _AND
        char * result)
        char * result)
 
 
{
{
  struct tm tm;
  struct tm tm;
  return asctime_r (localtime_r (tim_p, &tm), result);
  return asctime_r (localtime_r (tim_p, &tm), result);
}
}
 
 

powered by: WebSVN 2.1.0

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