CS350 COS
COS
Loading...
Searching...
No Matches
date.c
Go to the documentation of this file.
1
2
#include <
stdio.h
>
3
#include <time.h>
4
5
int
6
main
(
int
argc,
const
char
*argv[])
7
{
8
time_t
t =
time
(
NULL
);
9
fputs
(
ctime
(&t),
stdout
);
10
}
11
main
int main(int argc, const char *argv[])
Definition:
date.c:6
ctime
char * ctime(const time_t *timep)
Definition:
time.c:78
time
time_t time(time_t *t)
Definition:
time.c:20
NULL
#define NULL
Definition:
stddef.h:6
stdio.h
fputs
int fputs(const char *str, FILE *fh)
Definition:
file.c:132
stdout
FILE * stdout
Definition:
file.c:16
time_t
uint64_t time_t
Definition:
types.h:25
bin
date
date.c
Generated by
1.9.6