48int guac_itoa(
char* restrict dest,
unsigned int integer);
83size_t guac_strlcpy(
char* restrict dest,
const char* restrict src,
size_t n);
128size_t guac_strlcat(
char* restrict dest,
const char* restrict src,
size_t n);
150char*
guac_strnstr(
const char *haystack,
const char *needle,
size_t len);
251size_t guac_strljoin(
char* restrict dest,
const char* restrict
const* elements,
252 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_strndup(const char *str, size_t n)
Duplicates up to the given number of characters from the provided string, returning a newly-allocated...
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.
int guac_itoa(char *restrict dest, unsigned int integer)
Convert the provided unsigned integer into a string, returning the number of characters written into ...
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.