LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
string-utils.h
Go to the documentation of this file.
1 
6 #pragma once
7 
13 char *strdup2(const char *s);
20 char *strstrr(const char *haystack, const char *needle);
28 char *strrep(const char *haystack, const char *needle,
29  const char *replacement);
36 char *concat_strs_arr(size_t n, char **strs);
43 char *concat_strs(size_t n, ...);
49 int is_slash(char c);
56 char *remove_prefix(char *str, size_t n);
63 char *lower_str(char *str);
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