#ifndef UTILS_H_ #define UTILS_H_ #include #include "types.h" #define FREE_AND_NULLIFY(x) do{if(x)free(x); x = NULL;}while(0) int regex_match(const char *, str_array_t, str_array_t *); int substitute_str(const char *subject, const char *pattern, const char *replacement, char **presult); const char *mimeType2ext(const char *mimeType); int repchr(char *str, char t, char r); #endif