NAME
strings.h — string
operations
SYNOPSIS
#include
<strings.h>
DESCRIPTION
The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided for use with ISO C standard compilers.
[XSI] int ffs(int); int strcasecmp(const char *, const char *); int strcasecmp_l(const char *, const char *, locale_t); int strncasecmp(const char *, const char *, size_t); int strncasecmp_l(const char *, const char *, size_t, locale_t);
The <strings.h> header shall define the locale_t type as described in <locale.h>.
The <strings.h> header shall define the size_t type as described in <sys/types.h>.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
XSH ffs(3) , strcasecmp(3)
CHANGE HISTORY
First released in Issue 4, Version 2.
Issue 6
The Open Group Corrigendum U021/2 is applied, correcting the prototype for index() to be consistent with the reference page.
The bcmp(), bcopy(), bzero(), index(), and rindex() functions are marked LEGACY.
Issue 7
SD5-XBD-ERN-56 is applied, adding a reference to <sys/types.h> for the size_t type.
The LEGACY functions are removed.
The <strings.h> header is moved from the XSI option to the Base.
The strcasecmp_l(3) and strncasecmp_l(3) functions are added from The Open Group Technical Standard, 2006, Extended API Set Part 4.
A declaration for the locale_t type is added.