Blog Datasheets Home About me Clients My work Services Contact

G2Labs Grzegorz Grzęda

libc - ctype.h functions

June 17, 2023

Here I gathered the return values of ctype.h functions:

Every function has the same signature: int isXXX(char c):

ASCIIvaluescharactersiscntrlisprintisspaceisblankisgraphispunctisalnumisalphaisupperislowerisdigitisxdigit
0x000x08NULL, etc.
0x09'\t'
0x0A0x0D'\n', '\r', '\v',etc.
0x0E0x1Fcontrol codes
0x20space
0x210x2F!"#$%&'()*+,-./
0x300x390123456789
0x3A0x40:;<=>?@
0x410x46ABCDEF
0x470x5AGHIJKLMNOPQRSTUVWXYZ
0x5B0x60[]^_`
0x610x66abcdef
0x670x7Aghijklmnopqrstuvwxyz
0x7B0x7E{|}~
0x7fDEL


➡️ Effective error handling and exception management in C and Python


⬅️ Writing clear and concise comments in C and Python code


Go back to Posts.