/* * dateproc.c - remote procedures; called by server stub */ #include #include "date.h" /* * Return the binary date and time */ long * bin_date_1() { static long timeval; /* must be static */ long time(); /* UNIX function */ timeval = time((long *) 0); return (&timeval); } /* * Convert a binary time and return a human readable string */ char ** str_date_1(long *bintime) { static char *ptr; /* must be static */ char *ctime(); /* UNIX function */ ptr = ctime(bintime); return (&ptr); }