2021-05-09 17:34:00 +02:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdint.h>
|
2020-09-17 19:27:01 +02:00
|
|
|
|
2021-05-23 16:16:45 +02:00
|
|
|
#ifndef __SUPPORT_ARCH_SH
|
|
|
|
|
2020-09-17 19:27:01 +02:00
|
|
|
void *memset(void *s, int c, size_t n)
|
|
|
|
{
|
|
|
|
while ((int)--n >= 0)
|
2020-10-21 22:26:47 +02:00
|
|
|
((uint8_t *) s)[n] = c;
|
2020-09-17 19:27:01 +02:00
|
|
|
return (s);
|
|
|
|
}
|
2021-05-23 16:16:45 +02:00
|
|
|
|
|
|
|
#endif /*__SUPPORT_ARCH_SH*/
|