home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
w
/
wfs203.zip
/
WFSUDATE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-11
|
452b
|
23 lines
/* ---------------------------------------------------------------------
wfsudate.c -- Display the date to stdout
Display the date to stdout using standard library functions.
----------- */
#include <stdio.h>
#include <string.h>
#include <time.h>
int main() {
time_t tod;
char mbuf[128] = "Executed: ";
time( &tod );
strcat( mbuf, ctime( &tod ) );
puts( mbuf );
return 0;
} // --- end main() ---