摘要: 终于决定整理自己的写的库函数了#include <stdio.h>void *ystd_memmove(const void *src,void *dst,size_t n){ void * ret = dst; //not overlap if((dst < src)||(src + n)<= dst) { while(n--) *(char *)dst++ = *(char *)src++; }else if(src < dst){//if src == dst quickly return dst += n; src += n; while(n--) *(c 阅读全文
posted @ 2011-05-19 20:32 westfly 阅读(280) 评论(0) 推荐(0) 编辑