#include #include "date.h" /* bin_date_1 returns the system time in binary format */ long * bin_date_1() { static long timeval; /* must be static!! This value is */ /* used by rpc after bin_date_1 returns */ long time(); /* Unix time function; returns time */ timeval = time((long *)0); return &timeval; } /* str_date_1 converts a binary time into a date string */ char ** str_date_1(bintime) long *bintime; { static char *ptr; /* return value... MUST be static! */ char *ctime(); /* Unix library function that does the work */ ptr = ctime(bintime); return &ptr; }