diff options
| author | Syndamia <kamen@syndamia.com> | 2023-12-08 17:28:30 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2023-12-08 17:28:30 +0200 |
| commit | de1e66d00a5469f02eb7323553b3b087e6255980 (patch) | |
| tree | 6f983150e3a98adcfd04422192af28965f484886 /util.h | |
| parent | d64b669582fcd274b64d95e7f546ecbe35dc1082 (diff) | |
| download | pico-web-de1e66d00a5469f02eb7323553b3b087e6255980.tar pico-web-de1e66d00a5469f02eb7323553b3b087e6255980.tar.gz pico-web-de1e66d00a5469f02eb7323553b3b087e6255980.zip | |
[util] Added and improved comments
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,15 +6,19 @@ #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 */ int digits(int num); #define clear_arr(arr) memset(arr, 0, sizeof(arr)/sizeof(*arr)) |
