Path: utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!bria!mike Newsgroups: comp.lang.c Subject: Re: Reading system time in Xenix OS Keywords: ascitime/asctime(); Message-ID: <412@bria> Date: 2 Feb 91 18:08:52 GMT References: <15@neis.UUCP> Reply-To: uunet!bria!mike (Michael Stefanik) Organization: Briareus Corporation, Los Angeles, CA Lines: 23 In article <15@neis.UUCP> molnar@neis.UUCP (Christopher Molnar) writes: >Hopefully someone out there has done this, I've been trying to get the >asctime() function to work properly as its described in the Xenix >development system manuals, it won't compile it dumps the core. [...] #include #include main() { long now; struct tm *ptr; time(&now); ptr = localtime(&now); puts(asctime(ptr)); } -- Michael Stefanik | Opinions stated are not even my own. Systems Engineer, Briareus Corporation | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly found to be saying things like "Well, it works on my DOS machine ..."