Register | Sing In

New posts

Stacks in C programming Linked Lists in C programming File Input/Output in C programming Check prime numbers in C Programming C Programming Enumeration C Programming Union

Archives

2013-10 2013-09 2013-08

ctype.h Library in C Programming

September 6, 2013 Posted by: GPA Views: 575 0 comments

<ctype.h> Library includes functions that allow to manipulate of character and string data.

 

Function Function description
int isdigit( int value ); Returns 1 (true), if input value is a digit and 0 (false) otherwise.
int isalpha( int value ); Returns 1 (true), if value is a letter and 0 (flase) otherwise.
int isalnum( int value );
Returns 1 (true), if  value is a digit or a letter and 0 (false) otherwise.
int isxdigit( int value ); Returns 1 (true), if value is a hexadecimal digit character and 0 (false)
otherwise.
int islower( int value );
Returns 1 (true), if value is a lowercase letter and 0 (false) otherwise.
int isupper( int value );
Returns 1 (true), if value is an uppercase letter and 0 (false) otherwise.
int tolower( int value ); If value is an uppercase letter, this function returns value as a lowercase letter. Otherwise, it returns the argument unchanged.
int toupper( int value ); If value is a lowercase letter, this function returns value as an uppercase letter. Otherwise, it returns the argument unchanged.
int isspace( int value ); It returns a 1 (true), if value is a white-space character—newline ('\n'), space (' '), form feed ('\f'), carriage return ('\r'),horizontal tab ('\t') or vertical tab ('\v')—and 0 otherwise.
int iscntrl( int value); Returns 1 (true), if value is a control character and 0 (false) otherwise.
int ispunct( int value);
Returns  1 (true), if value is a printing character other than a space, a digit, or a letter and returns 0 (false) otherwise.
int isprint( int value ); Returns 1 (true), if value is a printing character including a space (' ') and returns 0 (false) otherwise.
int isgraph( int value ); Returns 1 (true), if value is a printing character other than a space (' ') and returns 0 (false) otherwise.

0 Comments...

Leave a Reply

Please, Sing In to leave a Reply for this material.



Online Chat

LiveZilla Live Help

Popular posts

Function strtok in C programming Check prime numbers in C Programming C Programming Union Linked Lists in C programming File Input/Output in C programming C Programming Enumeration

RSS-subscribe

New materials

Subscribe