ISIDEOGRAM(3)
π¦ ISIDEOGRAM(3) π¦
okay so bestie, welcome to the isideogram page π this is one of those cute little <ctype.h> besties that just... tells you if a character is ideographic. that's it. that's the whole vibe. it lives in the Standard C Library (libc, link with -lc) and honestly? it's giving "small but mighty." β¨
π NAME π
isideogram, isideogram_l β the ideographic character test, no cap π
π LIBRARY π
Standard C Library β libc, -lc π«Ά
β¨ SYNOPSIS β¨
#include <ctype.h>
int
isideogram(int c);
int
isideogram_l(int c, locale_t loc);
π DESCRIPTION π
so <pink>isideogram()</pink> and <pink>isideogram_l()</pink> are literally just here to test for an ideographic character. that's the job. main character energy, zero drama. πΈ
the difference between them? <purple>isideogram_l()</purple> takes an explicit locale argument (loc), while <purple>isideogram()</purple> uses the current global or per-thread locale β iykyk, whichever one is in play. π₯
β RETURN VALUES β
both functions are super simple:
- return zero if the character tests false π
- return non-zero if the character tests true β
that's the whole story, bestie. no surprises. π
π COMPATIBILITY π
okay this is the part where we get serious for a sec π«Ά
there's this 4.4BSD extension where you could pass arguments outside of the range of the unsigned char type in locales with large character sets. that behavior is considered obsolete and may not be supported in future releases. so like... don't rely on it, fr fr. π
instead, you should be usingiswideogram()oriswideogram_l(). please. for me. π
π SEE ALSO π
go read those too, they're iconic π
π¦ HISTORY π¦
isideogram() first appeared in 4.4BSD. a true vintage moment πβ¨
and that's the whole page, bestie!! this one came from Debian, dated December 19, 2022 β mwah, sending you love and correctly-tested characters π«Άππ§
π¦ 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