libusual  0.1
Defines
usual/ctype.h File Reference

ctype compat. More...

Defines

#define isblank
 Safe isblank.
#define isalnum
 Safe isalnum.
#define isalpha
 Safe isalpha.
#define isascii
 Safe isascii.
#define isblank
 Safe isblank.
#define iscntrl
 Safe iscntrl.
#define isdigit
 Safe isdigit.
#define isgraph
 Safe isgraph.
#define islower
 Safe islower.
#define isprint
 Safe isprint.
#define ispunct
 Safe ispunct.
#define isspace
 Safe isspace.
#define isupper
 Safe isupper.
#define isxdigit
 Safe isxdigit.
#define tolower
 Safe tolower.
#define toupper
 Safe toupper.

Detailed Description

ctype compat.

Provides wrappers that make sure the functions work on 'char' values.

Note:
POSIX requires that these functions accept EOF/-1 in addition to ordinary byte values. That means when working on 'char', the functions cannot differetiate between 0xFF and EOF. As no code should give EOF to <ctype.h> functions and no code should depend whether 0xFF is labeled ispunct() or not, it seems no worthwhile to fix it.

Define Documentation

#define isblank

Safe isblank.

#define isalnum

Safe isalnum.

#define isalpha

Safe isalpha.

#define isascii

Safe isascii.

#define isblank

Safe isblank.

#define iscntrl

Safe iscntrl.

#define isdigit

Safe isdigit.

#define isgraph

Safe isgraph.

#define islower

Safe islower.

#define isprint

Safe isprint.

#define ispunct

Safe ispunct.

#define isspace

Safe isspace.

#define isupper

Safe isupper.

#define isxdigit

Safe isxdigit.

#define tolower

Safe tolower.

#define toupper

Safe toupper.