strings.h(7POSIX)

πŸ¦‹ strings.h(7POSIX) β€” POSIX Programmer's Manual πŸ¦‹

okay bestie, sit down, hydrate, because we're doing the <strings.h> deep dive and it's literally so cute. this is page strings.h(7POSIX) from the POSIX Programmer's Manual, and yes, she's serving. πŸ’…


✨ PROLOG ✨

okay so real talk first, no cap: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ β€” so if you're on Linux, go consult the corresponding Linux manual page for the deets on Linux behavior. Or, plot twist, the interface might not even be implemented on Linux at all. πŸ™ˆ Check before you ship, bestie.


πŸ’– NAME πŸ’–

strings.h β€” string operations. that's it, that's the vibe. πŸŽ€


🌸 SYNOPSIS 🌸

#include <strings.h>

🌈 DESCRIPTION 🌈

so here's the tea: 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. periodt.

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);

look at her go ✨ five whole function signatures, all iconic.

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. (iykyk β€” that means they're not the normative requirements, they're just the commentary track. πŸ’€)


😭 APPLICATION USAGE 😭

None.

like. none. nothing. empty. the void. πŸ•³οΈ she said "no notes."


πŸ’œ RATIONALE πŸ’œ

None.

again β€” none. truly nothing to explain. she's self-evident and she knows it. πŸ‘‘


🧚 FUTURE DIRECTIONS 🧚

None.

no glow-up planned. she's perfect as is. ⭐


πŸ”₯ SEE ALSO πŸ”₯

  • <locale.h>
  • <sys_types.h>

The System Interfaces volume of POSIX.1‐2017, ffs(), strcasecmp()


okay bestie, legal moment, stay with me, it's giving very serious but we gotta keep every word. 🫑

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document.

The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

fr fr though β€” if you spot a typo in here, don't come for the standard, come for the conversion process. report it at that second link. πŸ’…

and that's the whole page, bestie. πŸŽ€ this absolute baddie of a header page is brought to you by IEEE/The Open Group, 2017, and she answers to strings.h(7POSIX). mwah. πŸ’–βœ¨πŸ¦‹