#ifndef _LIBSTR_H #define _LIBSTR_H #include int str2int(const char *str); char *remove_spaces(char *str); char *strip_line(char *str); char *strlower(char *line); int split_string(const char *str, char **key, char **value, char c); int split_configline(const char *str, char **key, char **value); bool valid_uri(char *uri); void url_decode(char *line); void remove_dangerous_chars(char *line); int prevent_CMDi(char *line); int prevent_SQLi(char *line, int length, char **newline); int prevent_XSS(char *line); const char *http_error(int code); bool decode_base64(char *base64); char *file_extension(char *filename); int str_replace(char *src, char *from, char *to, char **dst); bool min_strlen(char *str, int n); #endif