Saturday, 8 February 2014

Int, char validation functions in c


           Int, char validation functions

      Prev                                                                                              Next

   There are many inbuilt functions in C language which are used to validate the data type of given variable and to convert upper to lower case and lower to upper case are given below with description and simple example programs.
……

List of inbuilt int, char validation functions in C language:

  • “ctype.h” header file support all the below functions in C language.
S.no Function Description
1 isalpha() checks whether character is alphabetic
2 isdigit() checks whether character is digit
3 isalnum() checks whether character is alphanumeric
4 isspace() checks whether character is space
5 islower() checks whether character is lower case
6 isupper() checks whether character is upper case
7 isxdigit() checks whether character is hexadecimal
8 iscntrl() checks whether character is a control character
9 isprint() checks whether character is a printable character
10 ispunct() checks whether character is a punctuation
11 isgraph() checks whether character is a graphical character
12 tolower() checks whether character is alphabetic & converts to lower case
13 toupper() checks whether character is alphabetic & converts to upper case

      Prev                                                                                              Next

.


No comments:

Post a Comment