C-string.h-APIs --------------------- .. _strlen: https://man7.org/linux/man-pages/man3/strlen.3.html .. _strcat: https://man7.org/linux/man-pages/man3/strcat.3.html .. _strncat: https://man7.org/linux/man-pages/man3/strncat.3p.html .. _strlcat: https://linux.die.net/man/3/strlcat .. _strcmp: https://man7.org/linux/man-pages/man3/strcmp.3p.html .. _strncmp: https://man7.org/linux/man-pages/man3/strncmp.3p.html .. _strchr: https://man7.org/linux/man-pages/man3/strchr.3p.html .. _strrchr: https://man7.org/linux/man-pages/man3/strrchr.3p.html .. _strchrnul: https://linux.die.net/man/3/strchrnul .. _strstr: https://man7.org/linux/man-pages/man3/strstr.3p.html .. _strcasestr: https://linux.die.net/man/3/strcasestr .. _strcasecmp: https://man7.org/linux/man-pages/man3/strcasecmp.3p.html .. _strpbrk: https://man7.org/linux/man-pages/man3/strpbrk.3p.html .. _strsep: https://man7.org/linux/man-pages/man3/strsep.3.html .. _strspn: https://man7.org/linux/man-pages/man3/strspn.3p.html .. _strtok: https://man7.org/linux/man-pages/man3/strtok.3p.html .. _strtok_r: https://man7.org/linux/man-pages/man3/strtok_r.3p.html .. _strcpy: https://man7.org/linux/man-pages/man3/strcpy.3p.html .. _strncpy: https://man7.org/linux/man-pages/man3/strncpy.3p.html .. _strlcpy: https://linux.die.net/man/3/strlcpy .. _stpcpy: https://man7.org/linux/man-pages/man3/stpcpy.3p.html .. _strcoll: https://man7.org/linux/man-pages/man3/strcoll.3p.html .. _strcspn: https://man7.org/linux/man-pages/man3/strcspn.3p.html .. _strdup: https://man7.org/linux/man-pages/man3/strdup.3p.html .. _strndup: https://man7.org/linux/man-pages/man3/strndup.3p.html .. _strfry: https://man7.org/linux/man-pages/man3/strfry.3.html .. _strxfrm: https://man7.org/linux/man-pages/man3/strxfrm.3p.html ============= =============================================================== API name API description ============= =============================================================== strlen_ calculate the length of a string strcat_ concatenate two strings strncat_ concatenate two strings strlcat_ size-bounded string concatenation strcmp_ compare two strings strncmp_ compare part of two strings strchr_ string scanning operation strrchr_ string scanning operation strchrnul_ string scanning operation strstr_ find a substring strcasestr_ find a substring strcasecmp_ case-insensitive string comparisons strpbrk_ scan a string for a byte strsep_ extract token from string strspn_ get length of a substring strtok_ split string into tokens strtok_r_ split string into tokens strcpy_ copy a string and return a pointer to the end of the result strncpy_ copy fixed length string, returning a pointer to the array end strlcpy_ size-bounded string copying stpcpy_ copy a string and return a pointer to the end of the result strcoll_ string comparison using collating information strcspn_ get the length of a complementary substring strdup_ duplicate a specific number of bytes from a string strndup_ duplicate a specific number of bytes from a string strfry_ randomize a string strxfrm_ string transformation ============= ===============================================================