Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

isblank(3) Guardian Native C Library Calls Reference Manual
NAME
isblank - Tests for a white space character
LIBRARY
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 isblank(
int c);
PARAMETERS
c Species 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 blank character class in the current locale. If the char-
acter 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 blank in the program’s current
locale. Only the space and the newline characters are included in the blank 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).
3102 Hewlett-Packard Company 527192-018