|
|
1.1 ! root 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.