NAME

isspace - test for a white-space character

SYNOPSIS

#include <ctype.h>

int isspace(int c);

DESCRIPTION

The isspace() function tests whether c is a character of class space in the program's current locale, see the  Locale specification.

In all cases c is an int, the value of which must be a character representable as an unsigned char or must equal the value of the macro EOF. If the argument has any other value, the behaviour is undefined.

RETURN VALUE

The isspace() function returns non-zero if c is a white-space character; otherwise it returns 0.

ERRORS

No errors are defined.

EXAMPLES

None.

APPLICATION USAGE

To ensure applications portability, especially across natural languages, only this function and those listed in the SEE ALSO section should be used for character classification.

FUTURE DIRECTIONS

None.

SEE ALSO

isalnum(), isalpha(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isupper(), isxdigit(), setlocale(), <ctype.h>, the Locale specification.

DERIVATION

Derived from Issue 1 of the SVID.