NEXTWCTYPE(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ¦‹ nextwctype(3) β€” iterate through character classes πŸ¦‹

okay bestie, this is nextwctype(3) from the Library Functions Manual, and she is here to help you walk through character classes one character at a time. no cap, it's giving β€œtiny utility, main character energy.” πŸ’…


🌸 NAME 🌸

nextwctype β€” iterate through character classes

πŸ’– LIBRARY πŸ’–

Standard C Library (libc, -lc) β€” yes, she lives right there in libc, bestie.

✨ SYNOPSIS ✨

#include <wctype.h>

wint_t
nextwctype(wint_t ch, wctype_t wct);

πŸŽ€ DESCRIPTION πŸŽ€

okay so nextwctype() literally determines the next character after ch that is a member of character class wct. that's the whole assignment, and she ate. πŸ’…

and if ch is -1, the search begins at the first member of wct β€” cute, right? it's just starting from the top. πŸ¦‹

🌈 RETURN VALUES 🌈

nextwctype() returns the next character, or -1 if there are no more. that's it. that's the return contract, iykyk. πŸ’œ

⚠️ COMPATIBILITY ⚠️

no cap, important caveat: this function is a non-standard FreeBSD extension and should not be used where the standard iswctype() function would suffice. so like… use the standard one when it does the job, bestie. periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • wctype(3) β€” the related manual page, go peek at it when you need the character-class lore. πŸ“–βœ¨

πŸ¦‹ HISTORY πŸ¦‹

nextwctype() appeared in FreeBSD 5.4. iconic behavior, honestly. 🌸


πŸ’– cute sign-off: this manual page is from Debian, dated July 21, 2005. bye bestie! πŸ’–

πŸ“¦ where this page comes from