mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 15:04:05 +08:00
34 lines
724 B
HTML
34 lines
724 B
HTML
<h1>字符串函数 - strupr</h1>
|
||
|
||
|
||
<p>原型:extern char *strupr(char *s);</p>
|
||
|
||
<p>用法:#include <string.h></p>
|
||
|
||
<p>功能:将字符串s转换为大写形式</p>
|
||
|
||
<p>说明:只转换s中出现的小写字母,不改变其它字符。返回指向s的指针。</p>
|
||
|
||
举例:<pre><code class="language-c">
|
||
|
||
|
||
// strupr.c
|
||
|
||
#include <syslib.h>
|
||
#include <string.h>
|
||
|
||
main()
|
||
{
|
||
char *s="Copywrite 1999-2000 GGV Technologies";
|
||
|
||
clrscr();
|
||
|
||
printf("%s",strupr(s));
|
||
|
||
getchar();
|
||
return 0;
|
||
}
|
||
|
||
</code></pre>相关函数:<a href="strlwr.html">strlwr</a>
|
||
|