mescc: Tinycc support: memset.

* mlibc/libc-mes+tcc.c (memset): Implement.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-27 09:08:11 +02:00
parent 28f056fdde
commit 08ba0fce55

View file

@ -160,7 +160,9 @@ memmove (void *dest, void const *src, size_t n)
void *
memset (void *s, int c, size_t n)
{
return 0;
char *p = s;
while (n--) *p++ = c;
return s;
}
int