diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-03-02 11:33:02 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-03-02 11:33:02 -0500 |
commit | f7afd7bc9c759650c1b52ee6ff0c8f2956297056 (patch) | |
tree | 4ac4834972dc7601476a4f3d7e336605ecf6d01b /src/ctype/isdigit.c | |
parent | c22a0473c06092a41fb728ce668572082bb50636 (diff) |
clean up documentation
Diffstat (limited to 'src/ctype/isdigit.c')
-rw-r--r-- | src/ctype/isdigit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ctype/isdigit.c b/src/ctype/isdigit.c index 7a19fe19..f4f80c1b 100644 --- a/src/ctype/isdigit.c +++ b/src/ctype/isdigit.c @@ -3,13 +3,10 @@ #include "nonstd/assert.h" /** test whether a character is a digit **/ + int isdigit(int c) { ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - /* - RETURN(NONZERO, ARGUMENT(c) is a digit); - RETURN(0, ARGUMENT(c) is not a digit); - */ return isxdigit(c) && !isalpha(c); } @@ -20,6 +17,8 @@ in the current locale. ***/ /* +RETURN(NONZERO, ARGUMENT(c) is a digit) +RETURN(0, ARGUMENT(c) is not a digit) LC_CTYPE C_LOCALE(`THIS() is true for characters CHAR(0), CHAR(1), CHAR(2), CHAR(3), CHAR(4), CHAR(5), CHAR(6), CHAR(7), CHAR(8), and CHAR(9)') STDC(1) |