summaryrefslogtreecommitdiffstats
path: root/src/include/ctype.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ctype.h')
-rw-r--r--src/include/ctype.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ctype.h b/src/include/ctype.h
index 0d79ecd1..6fefd5d7 100644
--- a/src/include/ctype.h
+++ b/src/include/ctype.h
@@ -10,6 +10,17 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/**
+ * Check if character is ASCII
+ *
+ * @v character Character
+ * @ret is_ascii Character is an ASCII character
+ */
+static inline int isascii ( int character ) {
+
+ return ( character <= '\x7f' );
+}
+
+/**
* Check if character is a decimal digit
*
* @v character ASCII character