Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!psuvax1!news From: flee@shire.cs.psu.edu (Felix Lee) Newsgroups: comp.std.c Subject: Re: ANSI C date & time library functions. Message-ID: Date: 10 Feb 90 02:02:29 GMT References: <1990Feb9.183316.24925@utzoo.uucp> Sender: news@cs.psu.edu (Usenet) Organization: Penn State University Computer Science Lines: 11 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@shire.cs.psu.edu *!psuvax1!flee