码迷,mamicode.com
首页 >  
搜索关键字:strcat strcpy    ( 1155个结果
c 深度剖析 5
1,指针没有指向一块合法的区域1指针没有初始化12345678910111213#include #include struct aa{char *pa;char c;}ssa,*ssb;void main(){strcpy(ssa.pa,"abc");printf("%s \n",ssa.pa);...
分类:其他好文   时间:2014-05-04 11:38:09    阅读次数:278
C头文件之<cstring>
(string.h)这个文件夹主要是定义了几个对字符串和数组进行操作的函数。功能很强大。下面是重要函数:strcpy、strncpystrcpy,strncpy这两个函数是对字符串的复制,很常用。memcpy函数原型:void * memcpy ( void * destination, const...
分类:其他好文   时间:2014-05-03 23:10:14    阅读次数:310
六级指针小试牛刀
指针的小秘密...
分类:其他好文   时间:2014-05-02 04:44:13    阅读次数:219
走进C标准库(8)——"string.h"中函数的实现相关字符串操作函数
我的strcat: 1 char *strcat(char *dest,char *src) 2 { 3 char * reval = dest; 4 while(*dest) 5 dest++; 6 while(*src) 7 *dest++...
分类:其他好文   时间:2014-05-01 08:59:02    阅读次数:484
【转载】 free(p)后指针问题
转载自:http://blog.csdn.net/onestep365/article/details/1897626#include #include #include int main(){ char *str = (char *)malloc(100); strcpy(str, "hello"...
分类:其他好文   时间:2014-04-30 01:51:48    阅读次数:427
1155条   上一页 1 ... 114 115 116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!