diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1,4 +1,24 @@ +#include <time.h> +#include <stdio.h> +#include <unistd.h> +#include <pthread.h> +#include <sys/epoll.h> + +#define debug(x) printf("%s\n", x) + +static char* get_time() +{ + time_t rawtime; + struct tm * timeinfo; + + time (&rawtime); + timeinfo = localtime(&rawtime); + + return asctime(timeinfo) +} + int main(void) { + get_time(); return 0; }
\ No newline at end of file |