mre@ngdc2.colorado.edu (Marcus O. Ertle) (11/30/89)
I am running ULTRIX 3.1 on a VAX/780 and have run into a problem with gettimeofday(2). The following program: /* tcheck */ #include <sys/time.h> #include <errno.h> main () { struct timeval *tp; struct timezone *tzp; if (gettimeofday(tp, tzp) != 0) { printf("Error: %d\n", errno); exit (1); }; printf("Time (in seconds) since epoch: %10.2f\n", tp->tv_sec); } returns: Error: 14 What am I doing wrong? Please E-mail if possible.