Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!cmcl2!rna!n44a!ima!haddock!johnl From: johnl@haddock.UUCP Newsgroups: net.unix-wizards Subject: Re: question about ctime(3) and time(2) - (nf) Message-ID: <146@haddock.UUCP> Date: Tue, 3-Apr-84 23:41:11 EST Article-I.D.: haddock.146 Posted: Tue Apr 3 23:41:11 1984 Date-Received: Sat, 7-Apr-84 03:21:20 EST Lines: 22 #R:sri-arpa:-44200:haddock:16800010:000:346 haddock!johnl Apr 3 11:10:00 1984 In this code: main() { long i; char *t; t = ctime(time(&i)); } the problem is simple. The argument to ctime() is a pointer to a long, not the long itself. This will work on all of the Unix systems I know: time(&i); t = ctime(&i); More careful reading of your manual would have revealed this. John Levine, ima!johnl