From cb13d2982c1d04f9e8f807554cfa787561e21092 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 15 Jul 2023 10:31:36 +0200 Subject: Minor changes --- src/utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index c215431..2b523cb 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,4 +1,9 @@ +#pragma once + #include +#include +#include +#include #define STR(symbol) #symbol #define STRINGIFY(symbol) STR(symbol) @@ -13,3 +18,7 @@ (INTERVAL(INTERVAL((timestamp),(duration))-1,(duration))) #define TIMESTAMP() (time(NULL)) + +#define FILE_EXISTS(path) (access((path), F_OK) == 0) + +void mkdirp(char *path); \ No newline at end of file -- cgit v1.2.3