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/isspace.c | |
parent | c22a0473c06092a41fb728ce668572082bb50636 (diff) |
clean up documentation
Diffstat (limited to 'src/ctype/isspace.c')
-rw-r--r-- | src/ctype/isspace.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ctype/isspace.c b/src/ctype/isspace.c index 79aa9673..8b8d6d09 100644 --- a/src/ctype/isspace.c +++ b/src/ctype/isspace.c @@ -4,15 +4,12 @@ #include "nonstd/ctype.h" /** test whether a character is white-space **/ + int isspace(int c) { unsigned int *map = __libc(CTYPE); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - /* - RETURN(NONZERO, ARGUMENT(c) is a white-space character); - RETURN(0, ARGUMENT(c) is not a white-space character); - */ return map[c] & CT_SPACE; } @@ -23,6 +20,8 @@ in the current locale. ***/ /* +RETURN(NONZERO, ARGUMENT(c) is a white-space character) +RETURN(0, ARGUMENT(c) is not a white-space character) LC_CTYPE C_LOCALE(`THIS() is true for the standard white-space characters: SPACE, form feed (CHAR(\f)), new-line (CHAR(\n)), carriage return (CHAR(\r)), horizontal tab (CHAR(\t)), and vertical tab (CHAR(\v))') OTHER_LOCALES(`THIS() is true for the standard white-space characters and a set of characters for which FUNCTION(isalnum) is false') |