WCSSPN(3POSIX)

๐Ÿ’– WCSSPN(3POSIX) ๐Ÿ’–

okay so bestie, welcome to the POSIX Programmer's Manual, the WCSSPN(3POSIX) page specifically, and she is a tiny little queen with a big job ๐ŸŽ€


๐Ÿšจ PROLOG ๐Ÿšจ

so like, real talk first. this manual page is part of the POSIX Programmer's Manual. but heads up: the Linux implementation of this interface may differ (so pls consult the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface may just not be implemented on Linux at all. vibe check accordingly ๐Ÿ’€


โœจ NAME โœจ

wcsspn โ€” get the length of a wide substring ๐Ÿฆ‹


๐Ÿ“œ SYNOPSIS ๐Ÿ“œ

#include <wchar.h>

size_t wcsspn(const wchar_t *ws1, const wchar_t *ws2);

๐Ÿ’… DESCRIPTION ๐Ÿ’…

okay so the functionality described on this reference page is aligned with the ISO C standard. and like, any conflict between the requirements described here and the ISO C standard? unintentional, fr fr. this volume of POSIX.1โ€2017 defers to the ISO C standard. periodt.

now the actual tea โ˜• the wcsspn() function shall compute the length (in wide characters) of the maximum initial segment of the wide-character string pointed to by ws1 which consists entirely of wide-character codes from the wide-character string pointed to by ws2.

it's giving "how far can ws1 walk while every single step is still in ws2's guest list" ๐Ÿซถ


๐ŸŽ€ RETURN VALUE ๐ŸŽ€

the wcsspn() function shall return the length of the initial substring of ws1.

and listen: no return value is reserved to indicate an error. none. zero. she does not do error signals. ๐Ÿ˜ญ


๐Ÿšซ ERRORS ๐Ÿšซ

No errors are defined.

(the following sections are informative, so they're the fun bonus content ๐Ÿ’œ)


๐ŸŒธ EXAMPLES ๐ŸŒธ

None.

(not a single example, the page said rest ๐Ÿ’€)


๐Ÿ’œ APPLICATION USAGE ๐Ÿ’œ

None.


๐Ÿงš RATIONALE ๐Ÿงš

None.


๐Ÿ”ฎ FUTURE DIRECTIONS ๐Ÿ”ฎ

None.


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • wcscspn()
  • The Base Definitions volume of POSIX.1โ€2017, <wchar.h>

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 .


ngl if you spot a typo it's probably from the whole "converting source files to man page format" saga, not the standard itself. report it at that kernel.org link, king behavior ๐Ÿ‘‘

and that's the whole page bestie!! this icon dropped in 2017 courtesy of IEEE/The Open Group, and honestly? she ate. ๐Ÿ’–โœจ๐ŸŒˆ๐Ÿฆ‹๐ŸŽ€๐Ÿ’…๐Ÿ‘‘โญ

๐Ÿ“ฆ where this page comes from