Back to index

plt-scheme  4.2.1
ctype.h
Go to the documentation of this file.
00001 #include <ctype.h>
00002 #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
00003 # define ISASCII(c) 1
00004 #else
00005 # define ISASCII(c) isascii(c)
00006 #endif
00007 
00008 #ifdef isblank
00009 # define ISBLANK(c) (ISASCII (c) && isblank (c))
00010 #else
00011 # define ISBLANK(c) ((c) == ' ' || (c) == '\t')
00012 #endif
00013 #ifdef isgraph
00014 # define ISGRAPH(c) (ISASCII (c) && isgraph (c))
00015 #else
00016 # define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c))
00017 #endif
00018 
00019 #define ISPRINT(c) (ISASCII (c) && isprint (c))
00020 #define ISDIGIT(c) (ISASCII (c) && isdigit (c))
00021 #define ISALNUM(c) (ISASCII (c) && isalnum (c))
00022 #define ISALPHA(c) (ISASCII (c) && isalpha (c))
00023 #define ISCNTRL(c) (ISASCII (c) && iscntrl (c))
00024 #define ISLOWER(c) (ISASCII (c) && islower (c))
00025 #define ISPUNCT(c) (ISASCII (c) && ispunct (c))
00026 #define ISSPACE(c) (ISASCII (c) && isspace (c))
00027 #define ISUPPER(c) (ISASCII (c) && isupper (c))
00028 #define ISXDIGIT(c) (ISASCII (c) && isxdigit (c))