summaryrefslogtreecommitdiff
path: root/src/ctype/isxdigit.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-02 11:33:02 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-02 11:33:02 -0500
commitf7afd7bc9c759650c1b52ee6ff0c8f2956297056 (patch)
tree4ac4834972dc7601476a4f3d7e336605ecf6d01b /src/ctype/isxdigit.c
parentc22a0473c06092a41fb728ce668572082bb50636 (diff)
clean up documentation
Diffstat (limited to 'src/ctype/isxdigit.c')
-rw-r--r--src/ctype/isxdigit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ctype/isxdigit.c b/src/ctype/isxdigit.c
index 30ddd618..a17657fa 100644
--- a/src/ctype/isxdigit.c
+++ b/src/ctype/isxdigit.c
@@ -4,15 +4,13 @@
#include "nonstd/ctype.h"
/** test whether a character is a hexadecimal digit **/
+
int isxdigit(int c)
{
unsigned int *map = __libc(CTYPE);
ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF);
- /*
- RETURN(NONZERO, ARGUMENT(c) is a hexadecimal digit);
- RETURN(0, ARGUMENT(c) is not a hexadecimal digit);
- */
+
return map[c] & CT_XDIGIT;
}
@@ -22,6 +20,8 @@ in the current locale.
***/
/*
+RETURN(NONZERO, ARGUMENT(c) is a hexadecimal digit)
+RETURN(0, ARGUMENT(c) is not a hexadecimal digit)
LC_CTYPE
C_LOCALE(`THIS() is true for the characters CHAR(0), CHAR(1), CHAR(2), CHAR(3), CHAR(4), CHAR(5), CHAR(6), CHAR(7), CHAR(8), CHAR(9), CHAR(a), CHAR(b), CHAR(c), CHAR(d), CHAR(e), CHAR(f), CHAR(A), CHAR(B), CHAR(C), CHAR(D), CHAR(E), and CHAR(F)')
STDC(1)