copy the current date into a given buffer
#include <time.h> char *_strdate( char *datestr )
The _strdate() function copies the current date to the buffer pointed to by datestr. The date is formatted as MM/DD/YY, where
The buffer must be at least 9 bytes long.
a pointer to the resulting text string, datestr
asctime(), ctime(), gmtime(), localtime(), mktime(), _strtime(), time(), tzset()
#include <stdio.h> #include <time.h> void main() { char *date; char datebuff[9]; date = _strdate( datebuff ); printf( "%s\n", date ); }
WATCOM
All (except Netware, DOS/PM)