This commit is contained in:
fofolee
2019-04-08 23:22:26 +08:00
commit 7ca94f1141
5960 changed files with 530244 additions and 0 deletions

36
docs/c/strrev.html Normal file
View File

@@ -0,0 +1,36 @@
<h1>字符串函数 - strrev</h1>
<p>原型extern char *strrev(char *s);</p>
<p>用法:#include &lt;string.h></p>
<p>功能把字符串s的所有字符的顺序颠倒过来不包括空字符NULL</p>
<p>说明:返回指向颠倒顺序后的字符串指针。</p>
举例:<pre>
// strrev.c
#include &lt;syslib.h>
#include &lt;string.h>
main()
{
char *s="Welcome To Beijing";
clrscr();
textmode(0x00); // 6 lines per screen
printf("%s\n%s",s,strrev(strdup(s)));
getchar();
return 0;
}
</pre>相关函数:无