blob: 5f9ae49ee795eeeeac41f02ad3ea164f2429d426 (
plain)
1
2
3
4
5
6
7
8
9
|
#include <sys/types.h>
void * memset(void * dst, int s, size_t count) {
register char * a = dst;
count++; /* this actually creates smaller code than using count-- */
while (--count)
*a++ = s;
return dst;
}
|