摘要:
我的memcmp: 1 int memcmp(void *buf1, void *buf2, unsigned int count){ 2 int reval; 3 while(count && !(reval = (*(unsigned char *)buf1) - (*(unsi... 阅读全文
摘要:
我写的memchr:1 void *memchr(const void *buf, char ch, unsigned count){2 unsigned int cnt = 0;3 while(*(buf++) != ch && cnt count)5 ret... 阅读全文