PatchworkOS
Loading...
Searching...
No Matches
time.c
Go to the documentation of this file.
1
#include <
time.h
>
2
3
#include "
user/common/syscalls.h
"
4
5
time_t
time
(
time_t
* timePtr)
6
{
7
time_t
time
=
_syscall_unix_epoch
();
8
if
(timePtr !=
NULL
)
9
{
10
*timePtr =
time
;
11
}
12
return
time
;
13
}
NULL
#define NULL
Pointer error value.
Definition
NULL.h:23
syscalls.h
_syscall_unix_epoch
static time_t _syscall_unix_epoch(void)
Definition
syscalls.h:138
time
time_t time(time_t *timePtr)
Definition
time.c:5
time.h
time_t
long long unsigned time_t
Definition
time_t.h:4
src
libstd
user
functions
time
time.c
Generated by
1.9.8