实现方式:
void *ho_memset(void *b, int c, size_t n) {
char *p = (char *)b;
while (n--) {
*p++ = c;
}
return b;
}
实现方式:
void *ho_memset(void *b, int c, size_t n) {
char *p = (char *)b;
while (n--) {
*p++ = c;
}
return b;
}
转载于:https://my.oschina.net/guonaihong/blog/388191