home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / TIME / CTIME.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  245 b   |  15 lines

  1. /* ctime.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */
  2.  
  3. #include <time.h>
  4.  
  5. char *ctime (const time_t *t)
  6. {
  7.   struct tm *x;
  8.  
  9.   x = localtime (t);
  10.   if (x == NULL)
  11.     return (NULL);
  12.   else
  13.     return (asctime (x));
  14. }
  15.