2.9BSD/usr/contrib/news/src/ftime.c

Compare this file to the similar file:
Show the results in this format:

static char *SccsId = "@(#)ftime.c	2.3	3/3/83";

#include <sys/types.h>
struct timeb
{
	time_t	time;
	unsigned short millitm;
	short	timezone;
	short	dstflag;
};

extern long timezone;
extern int  daylight;

ftime(tp)
struct timeb *tp;
{
	long t;

	time(&t);
	tp->time = t;
	tp->millitm = 0;
	tp->timezone = timezone/60;
	tp->dstflag = daylight;
}