NEXTWCTYPE(3)
π¦ 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2004 Tim J. Robbins
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms