The Open Group Base Specifications Issue 8
IEEE Std 1003.1-2024
Copyright © 2001-2024 The IEEE and The Open Group

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][Option Start]
int    ffs(int);
int    ffsl(long);
int    ffsll(long long);
[Option End]
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>.


The following sections are informative.

APPLICATION USAGE

None.

RATIONALE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

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

XSH ffs , strcasecmp

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() and strncasecmp_l() functions are added from The Open Group Technical Standard, 2006, Extended API Set Part 4.

A declaration for the locale_t type is added.

Issue 8

Austin Group Defect 617 is applied, adding ffsl() and ffsll().

End of informative text.

 

return to top of page

UNIX® is a registered Trademark of The Open Group.
POSIX™ is a Trademark of The IEEE.
Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved
[ Main Index | XBD | XSH | XCU | XRAT ]