summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/init.c b/init.c
index 1dba0b4..8ecc0b8 100644
--- a/init.c
+++ b/init.c
@@ -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