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