.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:54:31 1993, Rik Faith (faith@cs.unc.edu) .TH STRING 3 "April 9, 1993" "" "Linux Programmer's Manual" .SH NAME string: strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex \- string operations .SH SYNOPSIS .nf .B #include .sp .BI "int strcasecmp(const char *" s1 ", const char *" s2 ); .sp .BI "char *strcat(char *" dest ", const char *" src ); .sp .BI "char *strchr(const char *" s ", int " c ); .sp .BI "int strcmp(const char *" s1 ", const char *" s2 ); .sp .BI "int strcoll(const char *" s1 ", const char *" s2 ); .sp .BI "char *strcpy(char *" dest ", const char *" src ); .sp .BI "size_t strcspn(const char *" s ", const char *" reject ); .sp .BI "char *strdup(const char *" s ); .sp .BI "char *strfry(char *" string ); .sp .BI "size_t strlen(const char *" s ); .sp .BI "char *strncat(char *" dest ", const char *" src ", size_t " n ); .sp .BI "int strncmp(const char *" s1 ", const char *" s2 ", size_t " n ); .sp .BI "char *strncpy(char *" dest ", const char *" src ", size_t " n ); .sp .BI "int strncasecmp(const char *" s1 ", const char *" s2 ", size_t " n ); .sp .BI "char *strpbrk(const char *" s ", const char *" accept ); .sp .BI "char *strrchr(const char *" s ", int " c ); .sp .BI "char *strsep(char **" stringp ", const char *" delim ); .sp .BI "size_t strspn(const char *" s ", const char *" accept ); .sp .BI "char *strstr(const char *" haystack ", const char *" needle ); .sp .BI "char *strtok(char *" s ", const char *" delim ); .sp .BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n ); .sp .BI "char *" index(const char *" s ", int " c ); .sp .BI "char *rindex(const char *" s ", int " c ); .fi .SH DESCRIPTION The string functions perform string operations on NULL-terminated strings. See the individual man pages for descriptions of each function. .SH SEE ALSO .BR index "(3), " rindex "(3), " strcasecmp "(3), " strcat (3), .BR strchr "(3), " strcmp "(3), " strcoll "(3), " strcpy (3), .BR strcspn "(3), " strdup "(3), " strfry "(3), " strlen (3), .BR strncat "(3), " strncmp "(3), " strncpy "(3), " strncasecmp (3), .BR strpbrk "(3), " strrchr "(3), " strsep "(3), " strspn (3), .BR strstr "(3), " strtok "(3), " strxfrm (3)