STRINGS.H(7) Miscellaneous Information Manual STRINGS.H(7)

strings.hstring operations

#include <strings.h>

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>.

None.

None.

None.

<locale.h>, <sys/types.h>

XSH ffs(3), strcasecmp(3)

First released in Issue 4, Version 2.

The Open Group Corrigendum U021/2 is applied, correcting the prototype for index () to be consistent with the reference page.

The (), (), (), index (), and () functions are marked LEGACY.

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.

January 31, 2018 posix.fail