ISRUNE(3)
okay bestie, welcome to the ISRUNE(3) manual page β yes, that's the manual name, and we're about to vibe-check characters π
. This one lives in the Standard C Library (libc, -lc), and it's giving "is this character even valid in the current character set?" energy.
β¨ NAME β¨
isrune, isrune_l β valid character test, no cap π
π LIBRARY π
Standard C Library (libc, -lc) β that's the library, bestie π«Ά
π§ SYNOPSIS π§
#include <ctype.h>
int
isrune(int c);
int
isrune_l(int c, locale_t loc);
π DESCRIPTION π
The isrune() and isrune_l() functions test for any character that is valid in the current character set. In the ASCII character set, this is equivalent to isascii() β iconic behavior, honestly β¨.
The isrune_l() function takes an explicit locale argument, whereas the isrune() function uses the current global or per-thread locale. So like, one is "use the locale you hand me," and the other is "use whatever the current global or per-thread locale is giving" πΈ.
π¦ RETURN VALUES π¦
The isrune() and isrune_l() functions return zero if the character tests false and return non-zero if the character tests true. Simple vibe check: zero means nope, non-zero means yep π.
β οΈ COMPATIBILITY β οΈ
bestie, listen: the4.4BSDextension of accepting arguments outside of the range of theunsigned chartype in locales with large character sets is considered obsolete and may not be supported in future releases. Theiswrune()oriswrune_l()function should be used instead. This is a "don't get too attached" situation π.
π SEE ALSO π
π HISTORY π
The isrune() function appeared in 4.4BSD. a little icon, a little legend π
Brought to you by the source/version Debian and dated December 19, 2022 β mwah π
π¦ 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