void memcpy(void *pvto, void *pvfrom, size_t size)
{
void *pbto = (byte *)pvto;
void *pbfrom = (byte *)pvfrom;
#ifdef debug
if(pvto == null || pvfrom == null)
{
fprintf(stderr, "bad args in memcpy!\n");
abort();
}
#endif
while(size-- > 0)
*pbto++ = *pbfrom++;
return(pvto);
}
//前面漏了个* 好像 |