22void *
x_memcpy(
void *dest,
const void *src,
size_t n);
81char *
x_strncpy(
char *dest,
const char *src,
size_t n);
char * x_strchr(const char *s, int c)
search c in s
char * x_strndup(const char *s, int n)
duplicate n char of a string
char ** x_strsplit(const char *s, const char *delim)
split a string with delimiter
char * x_strstr(const char *s, const char *substr)
search a string in another string
size_t x_strlen(const char *s)
get length of a string
char * x_strrev(char *str)
reverse a string
char * x_strdup(const char *s)
duplicate a string
char * x_strncpy(char *dest, const char *src, size_t n)
copy n char of src in dest
char * x_strcpy(char *dest, const char *src)
copy src in dest (dest must be able to store src)
int x_strcmp(const char *s1, const char *s2)
compare two strings
int x_strendswith(const char *str, const char *needle)
check if str ends with needle
char * x_strstrip(const char *s, const char *chars)
remove character at start and end
void * x_memcpy(void *dest, const void *src, size_t n)
copy bytes of src to dest
int x_strcontainc(char const *str, char const c)
check if str contain c