string
(3)string operations
#include <strings.h> int strcasecmp(const char *s1, const char *s2); Compare the strings s1 and s2 ignoring case. int strncasecmp(const char s1[.n], const char s2[.n], size_t n); Compare the first n bytes of the strings s1 and s2 ignoring case. char *index(const char *s, int c); Identical to strchr(3). char *rindex(const char *s, int c); Identical to strrchr(3). #include <string.h> char *stpcpy(char *restrict dest, const char *restrict src); Copy a string from src to dest, returning a pointer to the end of the resulting string at dest. char *strcat(char *restrict dest, const char *restrict src); Append the string src to the string dest, returning a pointer dest. char *strchr(const char *s, int c); Return a pointer to the first occurrence of the character c in the string s. int strcmp(const