move gcc required functions to string.c
This commit is contained in:
parent
9f833ca32c
commit
a6638d7af5
3 changed files with 16 additions and 8 deletions
10
src/lib/string.c
Normal file
10
src/lib/string.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include <stddef.h>
|
||||
#include "string.h"
|
||||
|
||||
void *memset(void *s, int c, size_t n) {
|
||||
unsigned char *p = s;
|
||||
while (n--) {
|
||||
*p++ = (unsigned char)c;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue