summaryrefslogtreecommitdiffstats
path: root/lib/libstand/stand.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-04-29 19:06:57 +0000
committermsmith <msmith@FreeBSD.org>2001-04-29 19:06:57 +0000
commitd5cca47fac5a27ceee91b9b35ebb07de279bc888 (patch)
tree2bbac20b45e918e9626cf8080a70c9ad6b3cc060 /lib/libstand/stand.h
parent3dfa0f1956ad0baa54770201e18c15b355252b77 (diff)
downloadFreeBSD-src-d5cca47fac5a27ceee91b9b35ebb07de279bc888.zip
FreeBSD-src-d5cca47fac5a27ceee91b9b35ebb07de279bc888.tar.gz
Unbreak world by defining isalnum() for libstand consumers.
Diffstat (limited to 'lib/libstand/stand.h')
-rw-r--r--lib/libstand/stand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h
index b3d7c41..8d39e46 100644
--- a/lib/libstand/stand.h
+++ b/lib/libstand/stand.h
@@ -182,6 +182,7 @@ extern struct open_file files[];
#define isxdigit(c) (isdigit(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
#define isascii(c) (((c) & ~0x7F) == 0)
#define isalpha(c) (isupper(c) || (islower(c)))
+#define isalnum(c) (isalpha(c) || isdigit(c))
static __inline int toupper(int c)
{
OpenPOWER on IntegriCloud