diff options
author | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-04-21 20:33:34 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-04-21 20:33:34 +0000 |
commit | b2dad0e3727cadca78d4c2cc51596d1ef1bf0946 (patch) | |
tree | e72cc26bb321e8bf90f4e68330674848db54eddf /libstdc++-v3/testsuite/printnow.c | |
parent | 051d082b263958a8524d91066f5c481b9e048bfd (diff) | |
download | gcc-b2dad0e3727cadca78d4c2cc51596d1ef1bf0946.zip gcc-b2dad0e3727cadca78d4c2cc51596d1ef1bf0946.tar.gz gcc-b2dad0e3727cadca78d4c2cc51596d1ef1bf0946.tar.bz2 |
libstdc++-v3: New directory.
2000-04-21 Benjamin Kosnik <bkoz@redhat.com>
* libstdc++-v3: New directory.
From-SVN: r33317
Diffstat (limited to 'libstdc++-v3/testsuite/printnow.c')
-rw-r--r-- | libstdc++-v3/testsuite/printnow.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/printnow.c b/libstdc++-v3/testsuite/printnow.c new file mode 100644 index 0000000..457605f --- /dev/null +++ b/libstdc++-v3/testsuite/printnow.c @@ -0,0 +1,13 @@ +/* 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); +} |