- 博客(3)
- 收藏
- 关注
原创 库函数memcpy的实现
//简单的memcpy实现方式void *memcpy(void *dst,const void *src,int num){if((dst == NULL) || (src == NULL)){return NULL;}char *pdst = (char *)dst;const char *psrc = (const char *)src;while
2016-03-04 18:06:25
334
1
原创 库函数strcpy的实现
//简单实现库函数strcpychar *mystrcpy(char *dst,const char *src){if((dst == NULL) || (src == NULL))return NULL;char *pdst = dst;while((*dst++ = *src++) != '\0'){}return pdst;}
2016-03-04 17:44:49
250
原创 2016-03-04 动态数组的实现方式
const int ARRAY_GROWUP = 10;struct ArrayStruct{ int iMaxCount; int iCurCount; int *pHead; };//初始化ArrayStruct *Array_Init(int iStartCount){ if(iStartCount
2016-03-04 09:42:37
195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人