Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
mikroC PRO for PIC32
MikroElektronika
607
isalnum
Prototype
unsigned int isalnum(char character);
Description Function returns 1 if the 
character
 is alphanumeric (A-Z, a-z, 0-9), otherwise returns zero.
          
Example
res = isalnum(‘o’);   // returns 1
res = isalnum(‘\r’);  // returns 0
isalpha
Prototype
unsigned int isalpha(char character);
Description Function returns 1 if the 
character
 is alphabetic (A-Z, a-z), otherwise returns zero.
          
Example
res = isalpha(‘A’);  // returns 1
res = isalpha(‘1’);  // returns 0
iscntrl
Prototype
unsigned int iscntrl(char character);
Description Function returns 1 if the 
character
 is a control or delete character(decimal 0-31 and 127), otherwise 
returns zero.
          
Example
res = iscntrl(‘\r’);  // returns 1
res = iscntrl(‘o’);   // returns 0
isdigit
Prototype
unsigned int isdigit(char character);
Description Function returns 1 if the 
character
 is a digit (0-9), otherwise returns zero.
         
Example
res = isdigit(‘o’);  // returns 1
res = isdigit(‘1’);  // returns 0
isgraph
Prototype
unsigned int isgraph(char character);
Description Function  returns  1  if  the 
character
  is  a  printable,  excluding  the  space  (decimal  32),  otherwise 
returns zero.
   
Example
res = isgraph(‘o’);  // returns 1
res = isgraph(‘ ‘);  // returns 0