![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基础学习
文章平均质量分 78
sunbingxi_
这个作者很懒,什么都没留下…
展开
-
微软strcpy,strcat和strcmp、memcpy的实现源代码
/****char *strcpy(dst, src) - copy one string over another**Purpose:* Copies the string src into the spot specified by* dest; assumes enough room.**Entry:* char * dst - string over which "src" is to be copied* const char * src - string to be copied over "d转载 2010-11-05 16:07:00 · 843 阅读 · 0 评论 -
指针作为函数参数问题
这几天在学习C过程中,在使用指针作为函数参数传递的时候出现了问题,根本不知道从何得解:源代码如下: createNode(BinNode *tree,char *p) { tree = (BinNode *) malloc(sizeof(BinNode)); tree->data = *p; }该代码段的意图是通过一个函数创建一个二叉树的节点,然而在,调用该函数后,试图访问该节点结构体的成员时候,却发生了内存访问错误,到底问题出在哪儿原创 2010-11-17 14:02:00 · 795 阅读 · 0 评论