mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 01:19:47 +08:00
b2dad0e372
2000-04-21 Benjamin Kosnik <bkoz@redhat.com> * libstdc++-v3: New directory. From-SVN: r33317
14 lines
235 B
C
14 lines
235 B
C
/* Prints the current time_t to stdout. Equivalent to the
|
|
* nonstandard %s format option to GNU date(1).
|
|
*/
|
|
|
|
#include <sys/types.h>
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
|
|
int main ()
|
|
{
|
|
printf ("%lu\n", time(NULL));
|
|
exit(0);
|
|
}
|