X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fctype.h;h=168900a4545ca98dd773431e162fdf6b573dccbf;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=adf5ce2b657ba09b2df5d5968892d9b544b88348;hpb=a441890ee6e346603bf5aeeb8a9694980118319f;p=pdclib diff --git a/includes/ctype.h b/includes/ctype.h index adf5ce2..168900a 100644 --- a/includes/ctype.h +++ b/includes/ctype.h @@ -1,6 +1,4 @@ -/* $Id$ */ - -/* 7.4 Character handling +/* Character handling This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -9,6 +7,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 +29,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 (' '). */ @@ -64,7 +64,7 @@ int ispunct( int c ); /* Returns true for every standard whitespace character (' ', '\f', '\n', '\r', '\t', '\v') in the "C" locale. In any other locale, also returns true for a locale-specific set of characters for which isalnum() is false. -*/ +*/ int isspace( int c ); /* Returns true for uppercase letters in the "C" locale. @@ -75,7 +75,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 */