home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
turbo_c
/
tc130.arc
/
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.