Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "jasperh" <jasperh@debis.co.za>
Subject: Memory fault(coredump) with time() function.
Date: 1999/01/20	[thread overview]
Message-ID: <01be4463$36d2fa80$64a305c4@jasper.somchem.denel.co.za> (raw)

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.

Part of the C code follows:

#include <stdio.h>
#include <prot.h>
#include <time.h>
#include <locale.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/security.h>
#include <sys/stat.h>

main(argc, argv, envp)
int argc;
char *argv[], *envp[];
{
char *name;
int current_time;
current_time=time();       
printf("now=%d\n", time());
}




             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 jasperh [this message]
1999-01-20  5:00 ` Memory fault(coredump) with time() function John Hascall
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