X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fctype.h;h=c82c26d7f1881a7a0699fe452e14cb55fb4d5f1b;hb=9f87d9e27e74d9e06e0c93114ffd70a45ee152fa;hp=a4ac53449bfd52e529860d95358dbe24ccf7d24e;hpb=0fa6394bc70eab55e0e38703a31a3072232c0729;p=pdclib diff --git a/includes/ctype.h b/includes/ctype.h index a4ac534..c82c26d 100644 --- a/includes/ctype.h +++ b/includes/ctype.h @@ -9,6 +9,8 @@ #ifndef _PDCLIB_CTYPE_H #define _PDCLIB_CTYPE_H _PDCLIB_CTYPE_H +#include <_PDCLIB_int.h> + /* Character classification functions */ /* Note that there is a difference between "whitespace" (any printing, non- @@ -29,15 +31,15 @@ int isalnum( int c ); */ int isalpha( int c ); -/* Returns true if the character is a whitespace. In the "C" locale, only ' ' - and '\t' are considered whitespace. +/* Returns true if the character isspace() and used for seperating words within + a line of text. In the "C" locale, only ' ' and '\t' are considered blanks. */ int isblank( int c ); /* Returns true if the character is a control character. */ int iscntrl( int c ); -/* Returns true if the character is a decimal digit. */ +/* Returns true if the character is a decimal digit. Locale-independent. */ int isdigit( int c ); /* Returns true for every printing character except space (' '). */ @@ -75,7 +77,7 @@ int isspace( int c ); */ int isupper( int c ); -/* Returns true for any hexadecimal-digit character. */ +/* Returns true for any hexadecimal-digit character. Locale-independent. */ int isxdigit( int c ); /* Character case mapping functions */ @@ -83,11 +85,11 @@ int isxdigit( int c ); /* Converts an uppercase letter to a corresponding lowercase letter. Input that is not an uppercase letter remains unchanged. */ -int tolower( c ); +int tolower( int c ); /* Converts a lowercase letter to a corresponding uppercase letter. Input that is not a lowercase letter remains unchanged. */ -int toupper( c ); +int toupper( int c ); #endif