ISPHONOGRAM(3)

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

ISPHONOGRAM(3) πŸ’…

okay so this is isphonogram(3), coming at you from the Library Functions Manual β€” yes bestie, the actual manual, not a vibe. 🫢


NAME πŸŽ€

isphonogram, isphonogram_l β€” phonographic character test

LIBRARY πŸ“š

Standard C Library (libc, -lc) β€” iconic, classic, linked with -lc.

SYNOPSIS ✨

#include <ctype.h>

int
isphonogram(int c);

int
isphonogram_l(int c, locale_t loc);

DESCRIPTION πŸ¦‹

The isphonogram() and isphonogram_l() functions test for a phonographic character. That's the assignment. πŸ’–

The way that isphonogram_l() works is it takes an explicit locale argument, whereas isphonogram() uses the current global or per-thread locale. So one is all β€œhere’s my locale, bestie,” and the other is β€œwhatever locale we’re currently in.” Lowkey elegant. πŸ’…

RETURN VALUES 🌸

  • The isphonogram() and isphonogram_l() functions return zero if the character tests false.
  • They return non-zero if the character tests true.

So: 0 = nope, non-zero = yes ma’am. No in-between, no cap. ✨

SEE ALSO πŸ‘‘

HISTORY ⭐

The isphonogram() function appeared in 4.4BSD. Historic. Iconic. A whole moment. πŸ’œ


mwah β€” Debian, December 19, 2022, signing off πŸ«ΆπŸ’–

πŸ“¦ where this page comes from