uTools-Manuals/docs/c/isupper.html
2019-04-21 11:50:48 +08:00

36 lines
845 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>字符函数 - isupper</h1>
<p>原型extern int isupper(int c);</p>
<p>用法:#include &lt;ctype.h></p>
<p>功能判断字符c是否为大写英文字母</p>
<p>说明当c为大写英文字母(A-Z)时,返回非零值,否则返回零。</p>
举例:<pre><code class="language-c">
// isupper.c
#include &lt;syslib.h>
#include &lt;ctype.h>
main()
{
int c;
clrscr(); // clear screen
c='a';
printf("%c:%s\n",c,isupper(c)?"yes":"no");
c='A';
printf("%c:%s\n",c,isupper(c)?"yes":"no");
c='7';
printf("%c:%s\n",c,isupper(c)?"yes":"no");
getchar();
return 0;
}
</code></pre>相关函数:<a href="islower.html">islower</a>