Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (g - i) isspace(3)
NAME
isspace - Tests for a white space character
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <ctype.h>
int isspace(
int c);
PARAMETERS
c Specifies the character to be tested. In all cases, this parameter is an int data
type, whose value must be representable as an unsigned char or must equal the
value of the macro EOF (defined in the stdio.h include file). When this parame-
ter has a value that cannot be represented as an unsigned char or EOF, the
result is undefined.
DESCRIPTION
This function tests for membership in the white space character class in the current locale. If the
character is part of the character class, the function returns a nonzero value for true; otherwise, it
returns a value of 0 (zero) for false.
The function returns a true value when c is a character of class space in the program’s current
locale. At a minimum, the space, form-feed, newline, carriage-return, tab, and vertical-tab char-
acters are included in this class.
NOTES
The LC_CTYPE category of the setlocale() function affects all conversions.
In the C locale, or in a locale where character-type information is not defined, characters are
classified according to the rules of the US-ASCII 7-bit coded character set. For any character
value greater than octal 177 (0177 in C-language context) the value 0 (zero) is returned.
RETURN VALUES
Upon successful completion of any function, a nonzero (TRUE) value is returned. Otherwise,
the value 0 (FALSE) is returned.
RELATED INFORMATION
Functions: isalnum(3), isalpha(3), isascii(3), iscntrl(3), isgraph(3), islower(3), isprint(3),
ispunct(3), isupper(3), isxdigit(3), setlocale(3).
Files: locale(4).
527192-018 Hewlett-Packard Company 3−119