void Memcpy(void *Des, const void *Src, size_t count)
{
assert(Des != NULL && Src != NULL);
//char *tempdes = (char *)Des;
//char *tempsrc = (char *)Src;
int *tempdes = (int *)Des;
int *tempsrc = (int *)Src;
while (count-- > 0)
{
*tempdes++ = *tempsrc++;
}
//*tempdes = '\0';
}
阅读(493) | 评论(0) | 转发(0) |