Added HTTP request types

This commit is contained in:
Pin
2022-02-21 15:03:26 -05:00
parent 44a6447047
commit 2f73f776f6
6 changed files with 155 additions and 32 deletions

13
src/utils.c Normal file
View 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;
}