strcat()
来源:互联网 发布:知乎android客户端 编辑:程序博客网 时间:2024/05/16 15:38
strcat()
原型:char *strcat ( char *dest, const char *src)
用法:#include <string.h>
功能:连接两个字符串;strcat()会将参数src字符串拷贝到参数dest所指的字符串尾。第一个参数dest要有足够的空间来容纳要拷贝的字符串。
说明:strcat()返回dest的字符串起始地址。
举例:
#include <string.h>#include <stdio.h>int main(){char a[30]="string_1";char b[]="string_2";printf("before strcat() : %s\n",a);printf("after strcat() : %s\n",strcat(a,b));}
结果:
- strcat
- strcat
- strcat
- strcat
- strcat()
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- strcat
- nyoj 14 会场安排问题
- Windows多线程示例代码
- 推荐一系列优秀的Android开发源码
- eclipse 添加 Courier New 字体
- WebViewClient
- strcat()
- oracle数据库启动失败--- failure in processing system parameters
- jquery函数大全
- Spring学习总结
- 涂鸦
- 虚拟机密码丢失处理
- HDU 1548-A strange lift
- malloc,free 实现原理和机制
- TLD(Tracking-Learning-Detection)学习与源码理解之(六)