realLifeinfo

c programming standard library explained character handling ctype header

Nerd, Solutions 
  

This C standard library include functions that are useful for classifying and mapping codes from the target character set

Sponsored

The value can be those returned from fgetc, fputc, getc, getchar, putc, putchar, tolower, and toupper.

isalnum

This function used to test if the specified argument is either an integer or alphabet. If the specified argument is 0-9 or A-Z (a-z), the function will return value greater than zero. If the specified argument is not a match, the function will return zero.

Syntax:

isalpha

This function used to test if the specified argument is an alphabetical character, A-Z or a-z. If the specified argument match, the function will return a non-zero value. If the specified argument does not match, the function will return zero.

Syntax:

iscntrl

This function returns a non-zero, if the specified argument is any of these special character BEL, BS, CR, FF, HT, NL, VT or any other implementation defined control character.

Syntax:

 isdigit

This function used to test, if the specified argument is a digit, 0-9. If the specified argument is a digit, the function will return a non-zero value. If the specified argument is not a digit, the function will return a zero value.

Syntax:

isgraph

The function returns a non-zero if the specified argument is any character for which either isalnum or ispunct returns a non-zero value.

Syntax:

 islower

The function returns a non-zero value if the specified argument is any of a-z small letters.

Syntax:

isprint

This function returns a non-zero value, if the specified argument is either a space character or a characters for which isgraph returns non-zero.

Syntax:

ispunct

The function returns non-zero is the specified argument is any of these characters ! # % & ' ( ) : < = > ? [ \ } * + and other symbols.

Syntax:

 isspace

This function returns a non-zero value, if the specified argument is any of these characters CR FF HT NL VT and space character.

Syntax:

isupper

This function returns a non-zero value, if the specified argument is any of A-Z capital letters.

Syntax:

 isxdigit

This function returns a non-zero value, if the specified argument is any of these characters 0-9 and a-f or A-F.

Syntax:

 tolower

This function returns the corresponding lowercase letter of the specified argument, which must be a uppercase letter. Otherwise it returns the specified argument unchanged.

Syntax:

toupper

This function returns a corresponding uppercase letter of the specified argument, which must be a lowercase letter. otherwise returns the specified argument unchanged.

Syntax:

Sponsored