summaryrefslogtreecommitdiff
path: root/ctype_ex.h
diff options
context:
space:
mode:
authorbehdad <behdad>2004-05-03 05:17:48 +0000
committerbehdad <behdad>2004-05-03 05:17:48 +0000
commit577ed4095383ef5284225d45709e6b5f0598a064 (patch)
tree6c7d0ce55124a688b4d7050e684d9d7a1e3aa71d /ctype_ex.h
downloadc2man-577ed4095383ef5284225d45709e6b5f0598a064.tar.gz
Initial revisionHEADoriginmaster
Diffstat (limited to 'ctype_ex.h')
-rw-r--r--ctype_ex.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/ctype_ex.h b/ctype_ex.h
new file mode 100644
index 0000000..5719a7f
--- /dev/null
+++ b/ctype_ex.h
@@ -0,0 +1,38 @@
+/* ctype.h - character classification functions */
+
+/* character is alphanumeric
+ * returns 0 if the character doesn't fit the
+ * classification; non-zero (but not necessarily 1)
+ * if it does.
+ */
+inline int isalnum(int c /* the character to classify */);
+
+/* character is a letter */
+inline int isalpha(int c);
+
+/* character is a control character */
+inline int iscntrl(int c);
+
+/* character is a digit */
+inline int isdigit(int c);
+
+/* character is a graphic */
+inline int isgraph(int c);
+
+/* character is a lower case letter */
+inline int islower(int c);
+
+/* character is printable */
+inline int isprint(int c);
+
+/* character is punctuation */
+inline int ispunct(int c);
+
+/* character is a a form of whitespace */
+inline int isspace(int c);
+
+/* character is an upper case letter */
+inline int isupper(int c);
+
+/* character is a hexadecimal digit */
+inline int isxdigit(int c);