3 <<isprint>>, <<isgraph>>, <<isprint_l>>, <<isgraph_l>>---printable character predicates
19 int isprint(int <[c]>);
20 int isgraph(int <[c]>);
23 int isprint_l(int <[c]>, locale_t <[locale]>);
24 int isgraph_l(int <[c]>, locale_t <[locale]>);
27 <<isprint>> is a macro which classifies singlebyte charset values by table
28 lookup. It is a predicate returning non-zero for printable characters,
29 and 0 for other character arguments. It is defined only if <[c]> is
30 representable as an unsigned char or if <[c]> is EOF.
32 <<isgraph>> behaves identically to <<isprint>>, except that space characters
35 <<isprint_l>>, <<isgraph_l>> are like <<isprint>>, <<isgraph>> but perform
36 the check based on the locale specified by the locale object locale. If
37 <[locale]> is LC_GLOBAL_LOCALE or not a valid locale object, the behaviour
40 You can use a compiled subroutine instead of the macro definition by
41 undefining either macro using `<<#undef isprint>>' or `<<#undef isgraph>>',
42 or `<<#undef isprint_l>>' or `<<#undef isgraph_l>>'.
45 <<isprint>>, <<isprint_l>> return non-zero if <[c]> is a printing character.
46 <<isgraph>>, <<isgraph_l>> return non-zero if <[c]> is a printing character
50 <<isprint>> and <<isgraph>> are ANSI C.
52 No supporting OS subroutines are required.
62 return(__CTYPE_PTR
[c
+1] & (_P
|_U
|_L
|_N
));
70 return(__CTYPE_PTR
[c
+1] & (_P
|_U
|_L
|_N
|_B
));