Added HTTP request types
This commit is contained in:
13
src/utils.c
Normal file
13
src/utils.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
int PrintLog(unsigned char *message) {
|
||||
time_t UTCTime;
|
||||
// Setting time in EPOC
|
||||
time(&UTCTime);
|
||||
struct tm *now = localtime(&UTCTime);
|
||||
|
||||
printf("[Log] %02d/%02d/%d %02d:%02d:%02d - %s\n", (now->tm_mon + 1), now->tm_mday,
|
||||
(now->tm_year + 1900), now->tm_hour, now->tm_min, now->tm_sec, message);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user