Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Ajay Pal Singh <asingh2@sybase.com>
To: jasperh <jasperh@debis.co.za>
Subject: Re: Memory fault(coredump) with time() function.
Date: 1999/01/25	[thread overview]
Message-ID: <36AD006E.D106FADA@sybase.com> (raw)
In-Reply-To: 01be4463$36d2fa80$64a305c4@jasper.somchem.denel.co.za

You need to check man pages for time(3).
$ man 3 time

Here's the way it'll work.

long time_var;
time=(&time_var);    /* You can check for error here */
printf("%s", ctime(&time_var));

regards.

jasperh wrote:

> I get a Memory fault (coredump) when using the time() function in the
> following C code:
>
> I tried it on a DecUnix 3.2 and a 3.2c box.
> Many thanks.






      parent reply	other threads:[~1999-01-25  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 ` Joe Mario
1999-01-20  5:00 ` John Hascall
1999-01-25  5:00 ` Ajay Pal Singh [this message]
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