diff options
| author | Syndamia <kamen@syndamia.com> | 2024-01-06 11:15:57 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-01-06 11:15:57 +0200 |
| commit | cb86d3213519727a7fecd05b18b6a8adff230976 (patch) | |
| tree | 6eb60c98731014da7df5d05212ab94b14e6db29a /util.h | |
| parent | 56c2acfdbf1e4ee5d3fd44814a31ae64f57b3f49 (diff) | |
| download | pico-web-cb86d3213519727a7fecd05b18b6a8adff230976.tar pico-web-cb86d3213519727a7fecd05b18b6a8adff230976.tar.gz pico-web-cb86d3213519727a7fecd05b18b6a8adff230976.zip | |
(src) Moved source files to a src folder
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,29 +0,0 @@ -#ifndef H_UTIL -#define H_UTIL - -#include <inttypes.h> -#include <sds/sds.h> -#include <arpa/inet.h> -#include <regex.h> - -/* 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 |
