man gettimeofday
Reformatting page. Wait... done
gettimeofday(3C) C Library Functions gettimeofday(3C)
NAME
gettimeofday, settimeofday - get or set the date and time
SYNOPSIS
#include <sys/time.h>
int gettimeofday(struct timeval *tp);
....
#ifdef __cplusplus
int gettimeofday(struct timeval *, void *);
int settimeofday(struct timeval *, void *);
#endif
What is void* for?
This makes it very hard to write code that compiles on other machines.
#ifdef Solaris24
gettimeofday(time);
#elseif SYSV
gettimeofday(time);
#else
gettimeofday(time, timezone);
#endif
--
- Bill