2000-02-18 03:39:52 +08:00
|
|
|
@node Strings
|
|
|
|
@chapter Strings and Memory (@file{string.h})
|
|
|
|
|
|
|
|
This chapter describes string-handling functions and functions for
|
|
|
|
managing areas of memory. The corresponding declarations are in
|
|
|
|
@file{string.h}.
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* bcmp:: Compare two memory areas
|
|
|
|
* bcopy:: Copy memory regions
|
|
|
|
* bzero:: Initialize memory to zero
|
|
|
|
* index:: Search for character in string
|
2002-07-24 05:38:00 +08:00
|
|
|
* memccpy:: Copy memory regions up to end-token
|
2000-02-18 03:39:52 +08:00
|
|
|
* memchr:: Find character in memory
|
|
|
|
* memcmp:: Compare two memory areas
|
|
|
|
* memcpy:: Copy memory regions
|
2008-01-12 12:25:55 +08:00
|
|
|
* memmem:: Find memory segment
|
2000-02-18 03:39:52 +08:00
|
|
|
* memmove:: Move possibly overlapping memory
|
2002-07-24 05:38:00 +08:00
|
|
|
* mempcpy:: Copy memory regions and locate end
|
2015-06-23 21:10:14 +08:00
|
|
|
* memrchr:: Reverse search for character in memory
|
2000-02-18 03:39:52 +08:00
|
|
|
* memset:: Set an area of memory
|
2015-06-23 21:10:14 +08:00
|
|
|
* rawmemchr:: Find character in memory
|
2000-02-18 03:39:52 +08:00
|
|
|
* rindex:: Reverse search for character in string
|
2007-06-29 01:07:23 +08:00
|
|
|
* stpcpy:: Copy string returning a pointer to its end
|
|
|
|
* stpncpy:: Counted copy string returning a pointer to its end
|
2000-02-18 03:39:52 +08:00
|
|
|
* strcasecmp:: Compare strings ignoring case
|
2007-06-09 02:38:51 +08:00
|
|
|
* strcasestr:: Find string segment ignoring case
|
2000-02-18 03:39:52 +08:00
|
|
|
* strcat:: Concatenate strings
|
|
|
|
* strchr:: Search for character in string
|
2015-06-23 21:35:00 +08:00
|
|
|
* strchrnul:: Search for character in string
|
2000-02-18 03:39:52 +08:00
|
|
|
* strcmp:: Character string compare
|
2005-10-29 05:33:23 +08:00
|
|
|
* strcoll:: Locale-specific character string compare
|
2000-02-18 03:39:52 +08:00
|
|
|
* strcpy:: Copy string
|
|
|
|
* strcspn:: Count chars not in string
|
2016-08-24 00:15:55 +08:00
|
|
|
* strerror:: Convert error number to string (strerror, strerror_l)
|
2004-09-17 05:15:14 +08:00
|
|
|
* strerror_r:: Convert error number to string
|
2000-02-18 03:39:52 +08:00
|
|
|
* strlen:: Character string length
|
2005-10-29 05:33:23 +08:00
|
|
|
* strlwr:: Convert string to lowercase
|
2000-02-18 03:39:52 +08:00
|
|
|
* strncasecmp:: Compare strings ignoring case
|
|
|
|
* strncat:: Concatenate strings
|
|
|
|
* strncmp:: Character string compare
|
|
|
|
* strncpy:: Counted copy string
|
2017-08-30 11:03:57 +08:00
|
|
|
* strnstr:: Find string segment
|
2004-09-17 05:15:14 +08:00
|
|
|
* strnlen:: Character string length
|
2000-02-18 03:39:52 +08:00
|
|
|
* strpbrk:: Find chars in string
|
|
|
|
* strrchr:: Reverse search for character in string
|
2010-05-12 04:27:20 +08:00
|
|
|
* strsignal:: Return signal message string
|
2000-02-18 03:39:52 +08:00
|
|
|
* strspn:: Find initial match
|
|
|
|
* strstr:: Find string segment
|
|
|
|
* strtok:: Get next token from a string
|
|
|
|
* strupr:: Convert string to upper case
|
2017-06-15 04:22:00 +08:00
|
|
|
* strverscmp:: Compare version strings
|
2000-02-18 03:39:52 +08:00
|
|
|
* strxfrm:: Transform string
|
2000-03-08 11:46:01 +08:00
|
|
|
* swab:: Swap adjacent bytes
|
2009-03-11 20:57:53 +08:00
|
|
|
* wcscasecmp:: Compare wide character strings ignoring case
|
2009-03-15 21:39:07 +08:00
|
|
|
* wcsdup:: Wide character string duplicate
|
2009-03-11 20:57:53 +08:00
|
|
|
* wcsncasecmp:: Compare wide character strings ignoring case
|
2000-02-18 03:39:52 +08:00
|
|
|
@end menu
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/bcmp.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/bcopy.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/bzero.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/index.def
|
|
|
|
|
2002-07-24 05:38:00 +08:00
|
|
|
@page
|
2002-07-26 23:26:42 +08:00
|
|
|
@include string/memccpy.def
|
2002-07-24 05:38:00 +08:00
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/memchr.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/memcmp.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/memcpy.def
|
|
|
|
|
2008-01-12 12:25:55 +08:00
|
|
|
@page
|
|
|
|
@include string/memmem.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/memmove.def
|
|
|
|
|
2002-07-24 05:38:00 +08:00
|
|
|
@page
|
|
|
|
@include string/mempcpy.def
|
|
|
|
|
2015-06-23 21:10:14 +08:00
|
|
|
@page
|
|
|
|
@include string/memrchr.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/memset.def
|
|
|
|
|
2015-06-23 21:10:14 +08:00
|
|
|
@page
|
|
|
|
@include string/rawmemchr.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/rindex.def
|
|
|
|
|
2007-06-29 01:07:23 +08:00
|
|
|
@page
|
|
|
|
@include string/stpcpy.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/stpncpy.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strcasecmp.def
|
|
|
|
|
2007-06-09 02:38:51 +08:00
|
|
|
@page
|
|
|
|
@include string/strcasestr.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strcat.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strchr.def
|
|
|
|
|
2015-06-23 21:35:00 +08:00
|
|
|
@page
|
|
|
|
@include string/strchrnul.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strcmp.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strcoll.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strcpy.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strcspn.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strerror.def
|
|
|
|
|
2004-09-17 05:15:14 +08:00
|
|
|
@page
|
|
|
|
@include string/strerror_r.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strlen.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strlwr.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strncasecmp.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strncat.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strncmp.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strncpy.def
|
|
|
|
|
2017-08-30 11:03:57 +08:00
|
|
|
@page
|
|
|
|
@include string/strnstr.def
|
|
|
|
|
2004-09-17 05:15:14 +08:00
|
|
|
@page
|
|
|
|
@include string/strnlen.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strpbrk.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strrchr.def
|
|
|
|
|
2010-05-12 04:27:20 +08:00
|
|
|
@page
|
|
|
|
@include string/strsignal.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strspn.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strstr.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strtok.def
|
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/strupr.def
|
|
|
|
|
2017-06-20 00:52:02 +08:00
|
|
|
@page
|
|
|
|
@include string/strverscmp.def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
@page
|
|
|
|
@include string/strxfrm.def
|
2000-03-08 11:46:01 +08:00
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/swab.def
|
2009-03-11 20:57:53 +08:00
|
|
|
|
|
|
|
@page
|
|
|
|
@include string/wcscasecmp.def
|
|
|
|
|
2009-03-15 21:39:07 +08:00
|
|
|
@page
|
|
|
|
@include string/wcsdup.def
|
|
|
|
|
2009-03-11 20:57:53 +08:00
|
|
|
@page
|
|
|
|
@include string/wcsncasecmp.def
|