![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串管理函数
SH_Geek
这个作者很懒,什么都没留下…
展开
-
strcat
#include#include#includeint main(){ char a[20]={"You are a "}; puts(strcat(a,"worker!")); system("pause");}原创 2013-04-14 21:30:54 · 1548 阅读 · 1 评论 -
strcmp用法
#include#include#includeint main(){ int ptr; char m[]="awdasfer"; char n[]="iuydf"; ptr=strcmp(m,n); if(ptr>0) printf("m>n"); else if(ptr<0) printf("m<n"); else printf("m=n"); printf(原创 2013-04-12 21:06:38 · 3262 阅读 · 1 评论 -
strlen用法
#include#include#includeint main(){ char a[]="asdfg\0ss"; printf("%s\n",a); printf("%s\n%d\n",a[8],strlen(a)); system("pause");}原创 2013-04-12 21:20:06 · 1960 阅读 · 1 评论