sds_isalpha

int sds_isalpha (int val);


Determine whether this character is alphabetical.


This function determines whether a given character is alphabetical (A - Z and a - z). The argument val is the ASCII value for a character.

This function returns non-zero if the given character is alphabetical. Otherwise, it returns zero.

Example

int returni;

char string1[512];

 

sds_getstring(1,"\nEnter a alphabetical character: ",string1);

returni=sds_isalpha(string1[0]);

if (returni == 0)

sds_printf("\nThe character is NOT alphabetical. ");

else

sds_printf("\nThe character IS alphabetical. ");

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)