ANSI C date & time library functions.

Felix Lee flee at shire.cs.psu.edu
Sat Feb 10 13:02:29 AEST 1990


Are you allowed to compare time_ts without using difftime()?  Or
should I write "difftime(now, then) < 0" instead of "now < then"?

Can time_t be a pointer (converted to an arithmetic if necessary)?
Imagine
	typedef struct tm * time_t;
time() would allocate a new struct tm and return a pointer to it.
This is assuming you don't compare time_t values directly and don't
try to read or write them.
--
Felix Lee	flee at shire.cs.psu.edu	*!psuvax1!flee



More information about the Comp.std.c mailing list