This commit is contained in:
fofolee
2019-04-21 11:50:48 +08:00
parent 359d29ee0b
commit 38dcd51d8a
6901 changed files with 258583 additions and 2326828 deletions

View File

@@ -1,36 +1,36 @@
<h1>字符函数 - isprint</h1>
<p>原型extern int isprint(int c);</p>
<p>用法:#include &lt;ctype.h></p>
<p>功能判断字符c是否为可打印字符含空格</p>
<p>说明当c为可打印字符0x20-0x7e返回非零值否则返回零。</p>
举例:<pre><code class="language-c">
// isprint.c
#include &lt;syslib.h>
#include &lt;ctype.h>
main()
{
int c;
clrscr(); // clear screen
c='a';
printf("%c:%s\n",c,isprint(c)?"yes":"no");
c=' ';
printf("%c:%s\n",c,isprint(c)?"yes":"no");
c=0x7f;
printf("%c:%s\n",c,isprint(c)?"yes":"no");
getchar();
return 0;
}
</code></pre>相关函数:<a href="isgraph.html">isgraph</a>
<h1>字符函数 - isprint</h1>
<p>原型extern int isprint(int c);</p>
<p>用法:#include &lt;ctype.h></p>
<p>功能判断字符c是否为可打印字符含空格</p>
<p>说明当c为可打印字符0x20-0x7e返回非零值否则返回零。</p>
举例:<pre><code class="language-c">
// isprint.c
#include &lt;syslib.h>
#include &lt;ctype.h>
main()
{
int c;
clrscr(); // clear screen
c='a';
printf("%c:%s\n",c,isprint(c)?"yes":"no");
c=' ';
printf("%c:%s\n",c,isprint(c)?"yes":"no");
c=0x7f;
printf("%c:%s\n",c,isprint(c)?"yes":"no");
getchar();
return 0;
}
</code></pre>相关函数:<a href="isgraph.html">isgraph</a>