File: printnow.c

package info (click to toggle)
gcc-h8300-hms 1%3A3.4.6%2Bdfsg2-4.2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 94,620 kB
  • sloc: ansic: 627,399; cpp: 89,017; makefile: 24,797; asm: 21,058; sh: 16,616; yacc: 3,740; perl: 718; xml: 692; lex: 587; exp: 298; awk: 223; pascal: 86; lisp: 59; sed: 37
file content (13 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}