Compare commits

...

2 Commits

Author SHA1 Message Date
thorium1256
ff0f10295a add print.h 2026-05-15 23:02:30 +03:00
thorium1256
eafa4070e1 remove stray test binary 2026-05-15 23:00:01 +03:00
2 changed files with 19 additions and 0 deletions

19
include/print.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef PRINT_H
#define PRINT_H
#define DEFRAWT() \
time_t rawtime; \
struct tm *timeinfo; \
time(&rawtime); \
timeinfo = localtime(&rawtime)
#define REDEFRAWT() \
time(&rawtime); \
timeinfo = localtime(&rawtime)
#define PRINT_INFO(tminfo) \
printf("\r\x1b[3m\x1b[38;5;8m[%02d:%02d]\x1b[0m \x1b[1m\x1b[34m-\x1b[0m!\x1b[34m-\x1b[0m ", tminfo->tm_hour, tminfo->tm_min)
#endif

BIN
test

Binary file not shown.