summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-09-23 13:28:42 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-09-23 13:28:42 +0000
commit869234d9b465567551fc7867b68b31206978f17a (patch)
tree3535d9bfd6436578134caa5b04b3d9d0602ae576 /sys/lib
parent4a2375f74a84e26e241a55775e3bc25f8a382f3c (diff)
add <ctype.h> style macros.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/stand.h3
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')