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