summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/util.c5
-rw-r--r--include/util.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/common/util.c b/common/util.c
index 701419b073..054e8e839c 100644
--- a/common/util.c
+++ b/common/util.c
@@ -47,6 +47,11 @@ int isalpha(int c)
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
}
+int isupper(int c)
+{
+ return c >= 'A' && c <= 'Z';
+}
+
int isprint(int c)
{
return c >= ' ' && c <= '~';
diff --git a/include/util.h b/include/util.h
index 4d5c263182..9691669c19 100644
--- a/include/util.h
+++ b/include/util.h
@@ -62,6 +62,7 @@ __stdlib_compat int atoi(const char *nptr);
__stdlib_compat int isdigit(int c);
__stdlib_compat int isspace(int c);
__stdlib_compat int isalpha(int c);
+__stdlib_compat int isupper(int c);
__stdlib_compat int isprint(int c);
__stdlib_compat int memcmp(const void *s1, const void *s2, size_t len);
__stdlib_compat void *memcpy(void *dest, const void *src, size_t len);