summaryrefslogtreecommitdiff
path: root/init.c
blob: 8ecc0b82b22573c4f1958829c1c0640c2d413265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}