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

  1. /* ftime.c (emx+gcc) -- Copyright (c) 1993 by Eberhard Mattes */
  2.  
  3. #include <sys/emx.h>
  4. #include <sys/timeb.h>
  5. #include <time.h>
  6.  
  7. void ftime (struct timeb *ptr)
  8. {
  9.   if (!_tzset_flag) tzset ();
  10.   __ftime (ptr);
  11.   ptr->time += timezone;
  12.   ptr->dstflag = 0; /* daylight && _dst (&tm); */
  13.   ptr->timezone = timezone / 60;
  14. }
  15.