sds_isspace

int sds_isspace (int val);


Determine whether this character is a blank space.


This function determines whether a given character is a blank, or white-space, character, such as a space, tab, new-line character, formfeed, or carriage return. 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,"\nHit Space, Tab, or Enter: ",string1);

returni=sds_isspace(string1[0]);

if (returni == 0)

sds_printf("\nYou typed something that is NOT blank space. ");

else

sds_printf("\nYou entered some blank space. ");

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)