diff options
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); +} |