C programming character handling library functions

In this article, you will learn about different C programming character handling library functions that are used for character processing.

As we know that characters are the fundamental building blocks of every program. A character constant is represented as a character in a single quote. The value of character constant is an integer.

For example, a is represented as 'a' which is actually the integer value equal to 97 in ASCII.

Similarly, '\n' represents the integer value of newline equal to 10 in ASCII.

C provides standard character handling library <ctype.h>.

We should include character handling library i.e. <ctype.h> for using different character handling function. This header include various useful functions for performing tests and manipulations of character data in C programming.

The function in <ctype.h> recieves an unsigned char represented as int or EOF as argument. In C programming, character is a one byte integer.

This function checks if ch is a printing character other than a digit, a space, a letter or not.

Related Articles:

C library function isalnum( ) In this tutorial, you will learn about C library function isalnum() which is a character handling function used to check whether...

C Library Function ispunct( ) In this tutorial, you will learn about C library function ispunct() which is a character handling function used to check whether the argument supplied is a printing character other...

C Library Function islower() and isupper() In this tutorial, you will learn about C library function islower() and isupper() which is a character handling function used to check whether the argument supplied is a lowercase and uppercase...

C Library Function toupper() and tolower() In this tutorial, you will learn about C library function toupper() and tolower() which is a character handling function used to check whether the argument supplied is a lowercase and uppercase...