Loading [MathJax]/extensions/tex2jax.js
CS350 COS
COS
All Data Structures Files Functions Variables Typedefs Macros
date.c File Reference
#include <stdio.h>
#include <time.h>
Include dependency graph for date.c:

Go to the source code of this file.

Functions

int main (int argc, const char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Definition at line 6 of file date.c.

7{
8 time_t t = time(NULL);
9 fputs(ctime(&t), stdout);
10}
char * ctime(const time_t *timep)
Definition: time.c:78
time_t time(time_t *t)
Definition: time.c:20
#define NULL
Definition: stddef.h:6
int fputs(const char *str, FILE *fh)
Definition: file.c:132
FILE * stdout
Definition: file.c:16
uint64_t time_t
Definition: types.h:25
Here is the call graph for this function: