Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (i - m) isprint(3)
NAME
isprint - Tests for printable 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 isprint(
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 printable 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 print in the program’s current
locale. All characters in the class graph and the space character are automatically included in
print.
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), ispunct(3),
isspace(3), isupper(3), isxdigit(3), setlocale(3).
Files: locale(4).
527187-017 Hewlett-Packard Company 4−53