ISASCII(3P)
π ISASCII(3P) β the POSIX Programmer's Manual era π
okay bestie, so this one lives in the POSIX Programmer's Manual, and it's giving "tiny function, big standards energy" β¨
π¨ PROLOG π¨
so like, heads up before we even start: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so fr fr, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly? the interface might not even be implemented on Linux at all. π
β¨ NAME β¨
isascii β test for a 7-bit US-ASCII character π¦
πΈ SYNOPSIS πΈ
#include <ctype.h>
int isascii(int c);
π DESCRIPTION π
so the isascii() function shall test whether c is a 7-bit US-ASCII character code. that's it, that's the whole job. iconic, honestly. π
and the tea is: isascii() is defined on all integer values. no gatekeeping, no restrictions. periodt. π
π RETURN VALUE π
isascii() shall return non-zero if c is a 7-bit US-ASCII character code between 0 and octal 0177 inclusive π
otherwise? it shall return 0. simple as that, no cap. π
π ERRORS π
no errors are defined. literally none. not a single one. we love a low-drama function. π«Ά
the following sections are informative (iykyk β they're the vibe-check extras, not the rules).
β EXAMPLES β
None.
like... none. nothing. zero examples. bestie really said "figure it out" πβ¨
π§ APPLICATION USAGE π§
here's the important bit: the isascii() function cannot be used portably in a localized application. so if you're in a localized app, this one's not your girl. π
π RATIONALE π
None.
no rationale. it just is. main character energy with no explanation. π
π FUTURE DIRECTIONS π
ok so plot twist π β the isascii() function may be removed in a future version. she's on thin ice, bestie. enjoy her while she's here.
π₯ SEE ALSO π₯
- The Base Definitions volume of POSIX.1β2017,
<ctype.h>
πΈ COPYRIGHT πΈ
okay legal moment, gotta keep it real and keep every word:
portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
π that's the whole page, bestie. short, sweet, and standards-compliant.
IEEE/The Open Group β 2017 β mwah, love u, go test some ASCII ππΈπ¦
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms