Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!mcnc!decvax!ucbvax!ucbcad!tektronix!hplabs!sri-unix!gds@Mit-Csr.ARPA From: gds@Mit-Csr.ARPA Newsgroups: net.unix-wizards Subject: long vs. int [2] in ctime and time for unix v6 Message-ID: <444@sri-arpa.UUCP> Date: Thu, 29-Mar-84 21:02:00 EST Article-I.D.: sri-arpa.444 Posted: Thu Mar 29 21:02:00 1984 Date-Received: Tue, 3-Apr-84 20:11:37 EST Lines: 15 I discovered the trouble. I made a mistake. The correct code is included. One question, can one alternate legally between int [2] and long or must they be converted to each other? main() { char *t; long tod; time(&tod); t = ctime(&tod); /* weird behavior */ printf("%s\n", t); } -------