From ff0f10295a3d7cfd1048676c79df15cc287689b5 Mon Sep 17 00:00:00 2001 From: thorium1256 Date: Fri, 15 May 2026 23:02:30 +0300 Subject: [PATCH] add print.h --- include/print.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/print.h diff --git a/include/print.h b/include/print.h new file mode 100644 index 0000000..2d8f1e4 --- /dev/null +++ b/include/print.h @@ -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 \ No newline at end of file