From: john@iastate.edu (John Hascall)
Subject: Re: Memory fault(coredump) with time() function.
Date: 1999/01/20 [thread overview]
Message-ID: <784slh$795$1@news.iastate.edu> (raw)
In-Reply-To: 01be4463$36d2fa80$64a305c4@jasper.somchem.denel.co.za
jasperh <jasperh@debis.co.za> 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
next prev parent reply other threads:[~1999-01-20 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-20 5:00 Memory fault(coredump) with time() function jasperh
1999-01-20 5:00 ` John Hascall [this message]
1999-01-20 5:00 ` Joe Mario
1999-01-25 5:00 ` Ajay Pal Singh
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox