Help! - gettimeofday(2) fails with errno = 14
Marcus O. Ertle
mre at ngdc2.colorado.edu
Thu Nov 30 05:56:23 AEST 1989
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.
More information about the Comp.unix.ultrix
mailing list