PatchworkOS  3984a1d
A non-POSIX operating system.
Loading...
Searching...
No Matches
ctime.c
Go to the documentation of this file.
1#include <time.h>
2
3char* ctime(const time_t* timer)
4{
5 struct tm* tmp = localtime(timer);
6 return tmp ? asctime(tmp) : NULL;
7}
int64_t y
Definition main.c:153
char * ctime(const time_t *timer)
Definition ctime.c:3
#define NULL
Pointer error value.
Definition NULL.h:23
Definition time.h:21
_PUBLIC char * asctime(const struct tm *timeptr)
Definition asctime.c:4
_PUBLIC struct tm * localtime(const time_t *timer)
Definition localtime.c:5
long long unsigned time_t
Definition time_t.h:4