aboutsummaryrefslogtreecommitdiff
path: root/lib/libk/stdlib/memset.c
blob: a16bd05a8a9a5ac637685b2c359287da9dd10e2f (plain)
1
2
3
4
5
6
7
void *
memset(void *s, int c, long unsigned n)
{
  char *pDest = (char *)s;
  for (unsigned i = 0; i < n; ++i) pDest[i] = (char)c;
  return s;
}