字符串函数
来源:互联网 发布:sharpdesk软件 编辑:程序博客网 时间:2024/04/30 11:46
strcpy
原型:extern char *strcpy(char *dest,char *src);
用法:#include <string.h>
功能:把src所指由NUL结束的字符串复制到dest所指的数组中。
返回指向dest结尾处字符(NUL)的指针。
举例:
// strcpy.c
#include <syslib.h>
#include <string.h>
main()
{
char *s="Golden Global View";
char d[20];
clrscr();
strcpy(d,s);
printf("%s",d);
getchar();
return 0;
}
0 0
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 字符串函数
- 链队列的基本操作
- OpenNMS技术分析与扩展开发
- 2013-12-23 17:32:05
- 看懂SQL SERVER执行计划
- Spring MVC3 默认页面(welcome-file)问题
- 字符串函数
- Ubuntu上安裝JDK
- 在Eclipse中使用JDBC连接SQL Server 2005 Express
- 人生
- python +wsgi
- Java项目中如何读取工程的绝对路径
- linux 查看 cup 信息
- 历史上关于struts2 遍历Map最全的总结
- 快速在linux上搭建基于git+ssh的服务器