From cb86d3213519727a7fecd05b18b6a8adff230976 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 6 Jan 2024 11:15:57 +0200 Subject: (src) Moved source files to a src folder --- util.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 util.h (limited to 'util.h') diff --git a/util.h b/util.h deleted file mode 100644 index b2836eb..0000000 --- a/util.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef H_UTIL -#define H_UTIL - -#include -#include -#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 */ -#define clear_arr(arr) memset(arr, 0, sizeof(arr)/sizeof(*arr)) -int digits(int num); -int streq(const char* first, const char* second); -void shiftLeft(char* str, size_t size, size_t shift); -int isNumber(char* str); -int charCount(char* str, char cmp); - -#endif -- cgit v1.2.3