摘要:
终于决定整理自己的写的库函数了#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 阅读全文