$manlookup

string

(3)

string operations

Library functionsmanpages-dev 6.9.1-1also documents stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex
#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

LIBRARY

Standard C library (libc, -lc)

DESCRIPTION

The string functions perform operations on null-terminated strings. See the individual man pages for descriptions of each function.

See also