1: #ifdef SCCSID
   2: static char *SccsId = "@(#)ftime.c	2.5	4/26/85";
   3: #endif /* SCSCID */
   4: 
   5: #include <sys/types.h>
   6: struct timeb
   7: {
   8:     time_t  time;
   9:     unsigned short millitm;
  10:     short   timezone;
  11:     short   dstflag;
  12: };
  13: 
  14: extern long timezone;
  15: extern int  daylight;
  16: 
  17: ftime(tp)
  18: struct timeb *tp;
  19: {
  20:     long t;
  21: 
  22:     time(&t);
  23:     tp->time = t;
  24:     tp->millitm = 0;
  25:     tp->timezone = timezone/60;
  26:     tp->dstflag = daylight;
  27: }

Defined functions

ftime defined in line 17; used 1 times

Defined variables

SccsId defined in line 2; never used

Defined struct's

timeb defined in line 6; used 2 times
  • in line 18(2)
Last modified: 1986-01-20
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 770
Valid CSS Valid XHTML 1.0 Strict