• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2011.09/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>isprint - Untitled</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Untitled">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Ctype.html#Ctype" title="Ctype">
9<link rel="prev" href="islower.html#islower" title="islower">
10<link rel="next" href="ispunct.html#ispunct" title="ispunct">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<meta http-equiv="Content-Style-Type" content="text/css">
13<style type="text/css"><!--
14  pre.display { font-family:inherit }
15  pre.format  { font-family:inherit }
16  pre.smalldisplay { font-family:inherit; font-size:smaller }
17  pre.smallformat  { font-family:inherit; font-size:smaller }
18  pre.smallexample { font-size:smaller }
19  pre.smalllisp    { font-size:smaller }
20  span.sc    { font-variant:small-caps }
21  span.roman { font-family:serif; font-weight:normal; } 
22  span.sansserif { font-family:sans-serif; font-weight:normal; } 
23--></style>
24<link rel="stylesheet" type="text/css" href="../cs.css">
25</head>
26<body>
27<div class="node">
28<a name="isprint"></a>
29<p>
30Next:&nbsp;<a rel="next" accesskey="n" href="ispunct.html#ispunct">ispunct</a>,
31Previous:&nbsp;<a rel="previous" accesskey="p" href="islower.html#islower">islower</a>,
32Up:&nbsp;<a rel="up" accesskey="u" href="Ctype.html#Ctype">Ctype</a>
33<hr>
34</div>
35
36<h3 class="section">3.7 <code>isprint</code>, <code>isgraph</code>&mdash;printable character predicates</h3>
37
38<p><a name="index-isprint-116"></a><a name="index-isgraph-117"></a><strong>Synopsis</strong>
39<pre class="example">     #include &lt;ctype.h&gt;
40     int isprint(int <var>c</var>);
41     int isgraph(int <var>c</var>);
42     
43</pre>
44   <p><strong>Description</strong><br>
45<code>isprint</code> is a macro which classifies ASCII integer values by table
46lookup.  It is a predicate returning non-zero for printable
47characters, and 0 for other character arguments. 
48It is defined only when <code>isascii</code>(<var>c</var>) is true or <var>c</var> is EOF.
49
50   <p>You can use a compiled subroutine instead of the macro definition by
51undefining either macro using `<code>#undef isprint</code>' or `<code>#undef isgraph</code>'.
52
53   <p><br>
54<strong>Returns</strong><br>
55<code>isprint</code> returns non-zero if <var>c</var> is a printing character,
56(<code>0x20</code>&ndash;<code>0x7E</code>). 
57<code>isgraph</code> behaves identically to <code>isprint</code>, except that the space
58character (<code>0x20</code>) is excluded.
59
60   <p><br>
61<strong>Portability</strong><br>
62<code>isprint</code> and <code>isgraph</code> are ANSI C.
63
64   <p>No supporting OS subroutines are required.
65
66   <p><br>
67
68   </body></html>
69
70