From de1e66d00a5469f02eb7323553b3b087e6255980 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 8 Dec 2023 17:28:30 +0200 Subject: [util] Added and improved comments --- util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index bfa95f7..3bea3c2 100644 --- a/util.h +++ b/util.h @@ -6,15 +6,19 @@ #include #include +/* Networking */ uint16_t atop(const char *port); struct in_addr aton(const char* cp, int* output); +/* Error handling */ void herr(int output, const char* funcName); void herrc(int output, const char* funcName); +/* sds string substition */ sds gsub(sds str, const regex_t* regex, const char* repl); sds gsub_getm(sds str, const regex_t *regex, const char* repl, int* *matches, int *matchesCount); +/* Other */ int digits(int num); #define clear_arr(arr) memset(arr, 0, sizeof(arr)/sizeof(*arr)) -- cgit v1.2.3