CompuServe Messages

#Lost at C (Again!)

    17-Mar-87 17:36:02
Fm: Richard Rae/SYSOP 76703,4253
To: Richard Rae/SYSOP 76703,4253
#include <time.h> main() { long value; struct tm time_struct; /* time_struct is of type struct tm */ struct tm *pointer; /* pointer is of type pointer to type struct tm */ value=time(); /* This call returns a long int time in internal form */ printf("%ld\n",value); pointer=localtime(&value); /* Call w/addr of value, return ptr to struct */ printf("%d %d",time_struct.tm_sec,time_struct.tm_min); }