diff options
author | 1996-09-23 13:28:41 +0000 | |
---|---|---|
committer | 1996-09-23 13:28:41 +0000 | |
commit | 0bf80c56bb14955ffa06264d8a7229f58abeed06 (patch) | |
tree | f70b4321bda4f9b19c9c47656128b2cdab1948e8 /sys/lib/libsa | |
parent | rfc1323 variable (diff) | |
download | wireguard-openbsd-0bf80c56bb14955ffa06264d8a7229f58abeed06.tar.xz wireguard-openbsd-0bf80c56bb14955ffa06264d8a7229f58abeed06.zip |
add <ctype.h> style macros.
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r-- | sys/lib/libsa/stand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/lib/libsa/stand.h b/sys/lib/libsa/stand.h index afa837f89de..b4f663c27cd 100644 --- a/sys/lib/libsa/stand.h +++ b/sys/lib/libsa/stand.h @@ -102,7 +102,10 @@ extern struct open_file files[]; #define F_NODEV 0x0008 /* network open - no device */ #define isupper(c) ((c) >= 'A' && (c) <= 'Z') +#define islower(c) ((c) >= 'a' && (c) <= 'z') +#define isalpha(c) (isupper(c)||islower(c)) #define tolower(c) ((c) - 'A' + 'a') +#define toupper(c) ((c) - 'a' + 'A') #define isspace(c) ((c) == ' ' || (c) == '\t') #define isdigit(c) ((c) >= '0' && (c) <= '9') |