FreeCalypso > hg > freecalypso-tools
view target-utils/libc/memset.c @ 91:659fa1a26269
target-utils/libc: non-optimized C implementation of memset
for the sake of completeness and compliance
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 28 Oct 2016 23:15:01 +0000 |
parents | |
children |
line wrap: on
line source
#include <sys/types.h> u_char * memset(buf, c, n) u_char *buf; int c; unsigned n; { u_char *p = buf; for (; n; n--) *p++ = c; return buf; }