20 char *
strstrr(
const char *haystack,
const char *needle);
28 char *
strrep(
const char *haystack,
const char *needle,
29 const char *replacement);
char * remove_prefix(char *str, size_t n)
remove the first n letters from a string, in place
Definition: string-utils.c:94
char * strstrr(const char *haystack, const char *needle)
returns a pointer to the last occurrence of a substring
Definition: string-utils.c:17
char * strrep(const char *haystack, const char *needle, const char *replacement)
returns a new string with a string replaced
Definition: string-utils.c:32
char * lower_str(char *str)
make a string lower case, in place
Definition: string-utils.c:105
int is_slash(char c)
determines if a character is a slash
Definition: string-utils.c:90
char * strdup2(const char *s)
create a copy of a string, on the heap
Definition: string-utils.c:7
char * concat_strs(size_t n,...)
concatenate strings together
Definition: string-utils.c:75
char * concat_strs_arr(size_t n, char **strs)
concatenate strings together
Definition: string-utils.c:54