home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
271_02
/
gtodfunc.doc
< prev
next >
Wrap
Text File
|
1987-08-20
|
797b
|
39 lines
NAME
gtodsub -- Get time of day to file pointer
gtodstr -- Get time of day to a string
SYNOPSIS
void gtodsub(fp);
FILE *fp;
void gtodstr(str);
char *str;
DESCRIPTION
This function reads the system date and time and sends them in a
formatted string to the specified output channel, or to a string.
EXAMPLE
gtodsub(stdout); /* send date/time to stdout */
char string[30];
gtodstr(string);
printf("date and time are %s\n", string); /* same result */
This function is found in SMTCx.LIB for the Turbo-C Compiler.