aboutsummaryrefslogtreecommitdiff
path: root/lib/stdlib/memset.c
blob: ccd46ddeeea1dedca10947447f04d20981951393 (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] = c;
  return s;
}