2022-02-14 12:04:49 -05:00
|
|
|
#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
|
|
|
|
2022-02-14 12:04:49 -05:00
|
|
|
#endif // _STRING_H
|