From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8e7a3b3423ff7381 X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: Re: Memory fault(coredump) with time() function. Date: 1999/01/20 Message-ID: <784slh$795$1@news.iastate.edu>#1/1 X-Deja-AN: 434839156 References: <01be4463$36d2fa80$64a305c4@jasper.somchem.denel.co.za> Organization: Iowa State University, Ames, Iowa USA Newsgroups: comp.unix.osf.osf1 jasperh wrote: }I get a Memory fault (coredump) when using the time() function in the }following C code: }int current_time; }current_time=time(); }printf("now=%d\n", time()); time has an argument, use: printf("now=%d\n", time(NULL)); John -- John Hascall, Software Engr. Shut up, be happy. The conveniences you ISU Computation Center demanded are now mandatory. -Jello Biafra mailto:john@iastate.edu http://www.cc.iastate.edu/staff/systems/john/index.html <=- the usual crud