source: trunk/gcc/libstdc++-v3/testsuite/printnow.c

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 235 bytes
Line 
1/* Prints the current time_t to stdout. Equivalent to the
2 * nonstandard %s format option to GNU date(1).
3*/
4
5#include <sys/types.h>
6#include <stdio.h>
7#include <time.h>
8
9int main ()
10{
11 printf ("%lu\n", time(NULL));
12 exit(0);
13}
Note: See TracBrowser for help on using the repository browser.