.\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek. .\" %sccs.include.redist.man% .\" .\" @(#)string.3 8.1 (Berkeley) 06/04/93 .\" .Dd .Dt STRING 3 .Os BSD 4 .Sh NAME .Nm strcat , .Nm strncat , .Nm strchr , .Nm strrchr , .Nm strcmp , .Nm strncmp , .Nm strcasecmp, .Nm strncasecmp , .Nm strcpy , .Nm strncpy , .Nm strerror , .Nm strlen , .Nm strpbrk , .Nm strsep, .Nm strspn , .Nm strcspn , .Nm strstr , .Nm strtok , .Nm index , .Nm rindex .Nd string specific functions .Sh SYNOPSIS .Fd #include .Ft char * .Fn strcat "char *s" "const char * append" .Ft char * .Fn strncat "char *s" "const char *append" "size_t count" .Ft char * .Fn strchr "const char *s" "int c" .Ft char * .Fn strrchr "const char *s" "int c" .Ft int .Fn strcmp "const char *s1" "const char *s2" .Ft int .Fn strncmp "const char *s1" "const char *s2" "size_t count" .Ft int .Fn strcasecmp "const char *s1" "const char *s2" .Ft int .Fn strncasecmp "const char *s1" "const char *s2" "size_t count" .Ft char * .Fn strcpy "char *dst" "const char *src" .Ft char * .Fn strncpy "char *dst" "const char *src" "size_t count" .Ft char * .Fn strerror "int errno" .Ft size_t .Fn strlen "const char *s" .Ft char * .Fn strpbrk "const char *s" "const char *charset" .Ft char * .Fn strsep "char **stringp" "const char *delim" .Ft size_t .Fn strspn "const char *s" "const char *charset" .Ft size_t .Fn strcspn "const char *s" "const char *charset" .Ft char * .Fn strstr "const char *big" "const char *little" .Ft char * .Fn strtok "char *s" "const char *delim" .Ft char * .Fn index "const char *s" "int c" .Ft char * .Fn rindex "const char *s" "int c" .Sh DESCRIPTION The string functions functions manipulate strings terminated by a null byte. .Pp See the specific manual pages for more information. For manipulating variable length generic objects as byte strings (without the null byte check), see .Xr bstring 3 . .Pp Except as noted in their specific manual pages, the string functions do not test the destination for size limitations. .Sh SEE ALSO .Xr index 3 , .Xr strcat 3 , .Xr strchr 3 , .Xr strrchr 3 , .Xr strcmp 3 , .Xr strcasecmp 3 , .Xr strcpy 3 , .Xr strerror 3 , .Xr strlen 3 , .Xr strpbrk 3 , .Xr strsep 3 , .Xr strspn 3 , .Xr strcspn 3 , .Xr strstr 3 , .Xr strtok 3 , .Xr rindex 3 .Xr bstring 3 .Sh STANDARDS The .Fn strcat , .Fn strncat , .Fn strchr , .Fn strrchr , .Fn strcmp , .Fn strncmp , .Fn strcpy , .Fn strncpy , .Fn strerror , .Fn strlen , .Fn strpbrk , .Fn strsep , .Fn strspn , .Fn strcspn , .Fn strstr , and .Fn strtok functions conform to .St -ansiC .