isspace()

tests if character is a white-space character 

Function


SYNOPSIS

#include <ctype.h>

int isspace(int c);


DESCRIPTION

The isspace() function tests for any character that is a standard white-space character or is a character for which neither isalnum() nor isgraph() is true. The standard white-space characters are the following: space, tab, carriage-return, newline, vertical tab, and form-feed. In the C locale, isspace() returns true only for the standard white-space characters.

The behavior of the isspace() function is affected by the current locale. To modify the behavior, change the LC_CTYPE category in setlocale(), that is, setlocale(LC_CTYPE, newlocale). In the C locale or in a locale where character type information is not defined, characters are classified according to the rules of the U.S. ASCII 7-bit coded character set.


PARAMETERS

c 

Is an integer whose value is representable as an unsigned char, or the value of the macro EOF.


RETURN VALUES

The isspace() function returns non-zero for true and zero for false. If the parameter is not in the domain of the function, the return result is undefined.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe, with exceptions.

This function is MT-Safe as long as no thread calls setlocale() while this function is executing.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
isalnum(), isalpha(), isascii(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isupper(), isxdigit(), setlocale()


MKS Toolkit 9.2 Documentation Build 16.