This chapter describes string-handling functions and functions for managing areas of memory. The corresponding declarations are in string.h.
bcmp
—compare two memory areasbcopy
—copy memory regionsbzero
—initialize memory to zeroindex
—search for character in stringmemccpy
—copy memory regions with end-token checkmemchr
—find character in memorymemcmp
—compare two memory areasmemcpy
—copy memory regionsmemmem
—find memory segmentmemmove
—move possibly overlapping memorymempcpy
—copy memory regions and return end pointermemrchr
—reverse search for character in memorymemset
—set an area of memoryrawmemchr
—find character in memoryrindex
—reverse search for character in stringstpcpy
—copy string returning a pointer to its endstpncpy
—counted copy string returning a pointer to its endstrcasecmp
—case-insensitive character string comparestrcasestr
—case-insensitive character string searchstrcat
—concatenate stringsstrchr
—search for character in stringstrchrnul
—search for character in stringstrcmp
—character string comparestrcoll
—locale-specific character string comparestrcpy
—copy stringstrcspn
—count characters not in stringstrerror
, strerror_l
—convert error number to stringstrerror_r
—convert error number to string and copy to bufferstrlen
—character string lengthstrlwr
—force string to lowercasestrncasecmp
—case-insensitive character string comparestrncat
—concatenate stringsstrncmp
—character string comparestrncpy
—counted copy stringstrnstr
—find string segmentstrnlen
—character string lengthstrpbrk
—find characters in stringstrrchr
—reverse search for character in stringstrsignal
—convert signal number to stringstrspn
—find initial matchstrstr
—find string segmentstrtok
, strtok_r
, strsep
—get next token from a stringstrupr
—force string to uppercasestrverscmp
—version string comparestrxfrm
—transform stringswab
—swap adjacent byteswcscasecmp
—case-insensitive wide character string comparewcsdup
—wide character string duplicatewcsncasecmp
—case-insensitive wide character string compare