ISXDIGIT(3P)
π ISXDIGIT(3P) β POSIX Programmer's Manual, bestie edition π
okay so. hi. you're reading the POSIX Programmer's Manual page for isxdigit, and I am so glad you're here. quick heads up before we lock in: this page is the POSIX one, and the Linux implementation of this interface may differ β so like, go check the corresponding Linux manual page for the actual Linux behavior, bestie. or honestly the interface might not even be implemented on Linux at all. no cap. π
β¨ PROLOG β¨
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ β consult the corresponding Linux manual page for details of Linux behavior β or the interface may not be implemented on Linux. yeah. that's the whole disclaimer. moving on. π«Ά
πΈ NAME πΈ
isxdigit, isxdigit_l β the girlies who test for a hexadecimal digit. that's it. that's the job. π₯
π SYNOPSIS π
#include <ctype.h>
int isxdigit(int c);
int isxdigit_l(int c, locale_t locale);
look at her. two functions. one header. iconic. π
π¦ DESCRIPTION π¦
okay so for isxdigit(): the functionality described on this reference page is aligned with the ISO C standard. if there's any conflict between what's written here and the ISO C standard, that conflict is unintentional β this volume of POSIX.1β2017 defers to the ISO C standard. the ISO C girlies are the authority. periodt.
The isxdigit() and isxdigit_l() functions shall test whether c is a character of class xdigit in the current locale, or in the locale represented by locale, respectively. for the deets on locale, see the Base Definitions volume of POSIX.1β2017, Chapter 7, Locale.
The c argument is an int, and the value of it β the application shall ensure β is a character representable as an unsigned char or equal to the value of the macro EOF. π¨ and if the argument has any other value? the behavior is undefined. like, undefined undefined. do not pass go. do not collect $200. π
β οΈ also the behavior is undefined if thelocaleargument toisxdigit_l()is the special locale objectLC_GLOBAL_LOCALE, or if it's not a valid locale object handle. that's a hard no, bestie.
β RETURN VALUE β
The isxdigit() and isxdigit_l() functions shall return non-zero if c is a hexadecimal digit; otherwise, they shall return 0. simple as. binary queen. π
π ERRORS π
No errors are defined. she doesn't do errors. she's unbothered. π
The following sections are informative. (aka: gossip, not gospel. the real requirements are up above.) β¨
π§ EXAMPLES π§
None. absolutely zero examples. she said "figure it out." π
π APPLICATION USAGE π
okay so for the sake of application portability β especially across natural languages, which is a whole thing β only these functions and the functions in the reference pages listed in the SEE ALSO section should be used for character classification. no rogue homemade classification schemes, bestie. iykyk. π
πΈ RATIONALE πΈ
None. no reasoning was given. the reasoning is vibes. π
π¦ FUTURE DIRECTIONS π¦
None. she is what she is. main character energy forever. π
π« SEE ALSO π«
isalnum()isalpha()isblank()iscntrl()isdigit()isgraph()islower()isprint()ispunct()isspace()isupper()
The Base Definitions volume of POSIX.1β2017, Chapter 7, Locale, <ctype.h> β go read those too, they're the squad. π«Ά
π COPYRIGHT π
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 .
π and that's the page, bestie. brought to you by IEEE/The Open Group, 2017, ISXDIGIT(3P) β she's been serving since 2017 and she's still slaying. stay hex-y. mwah. π β¨
π¦ 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