lang-bootstrap/05/string.h

16 lines
197 B
C
Raw Normal View History

#ifndef _STRING_H
#define _STRING_H
#include <stdc_common.h>
void *memset(void *s, int c, size_t n) {
char *p = s, *end = p + n;
while (p < end)
*p++ = c;
return s;
}
2022-02-14 16:52:33 -05:00
#endif // _STRING_H