65size_t guac_strlcpy(
char* restrict dest,
const char* restrict src,
size_t n);
110size_t guac_strlcat(
char* restrict dest,
const char* restrict src,
size_t n);
132char*
guac_strnstr(
const char *haystack,
const char *needle,
size_t len);
201size_t guac_strljoin(
char* restrict dest,
const char* restrict
const* elements,
202 int nmemb,
const char* restrict delim,
size_t n);
Provides convenience functions for manipulating strings.
size_t guac_strlcat(char *restrict dest, const char *restrict src, size_t n)
Appends the given source string after the end of the given destination string, writing at most the gi...
size_t guac_strljoin(char *restrict dest, const char *restrict const *elements, int nmemb, const char *restrict delim, size_t n)
Concatenates each of the given strings, separated by the given delimiter, storing the result within a...
char * guac_strnstr(const char *haystack, const char *needle, size_t len)
Search for the null-terminated string needle in the possibly null- terminated haystack,...
char * guac_strdup(const char *str)
Duplicates the given string, returning a newly-allocated string containing the same contents.
size_t guac_strlcpy(char *restrict dest, const char *restrict src, size_t n)
Copies a limited number of bytes from the given source string to the given destination buffer.