summaryrefslogtreecommitdiff
path: root/src/libstddjb/byte_zero.c
blob: 6751210aee21c2135738ab7cca891360509ab224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <skalibs/config.h>

#ifdef SKALIBS_FLAG_REPLACE_LIBC

#include <skalibs/bytestr.h>

void byte_zero (void *p, register unsigned int n)
{
  register char *s = (char *)p ;
  while (n--) *s++ = 0 ;
}

#endif