mescc: Tinycc support: memmove stub.

* mlibc/include/string.h (memcmp): Declare.
* mlibc/libc-mes+tcc.c (memcmp): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 12:53:51 +02:00
parent 6c7d26fa1c
commit 5c338ef705
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,7 @@ typedef long ssize_t;
void *memcpy (void *dest, void const *src, size_t n);
void *memmove (void *dest, void const *src, size_t n);
void *memset (void *s, int c, size_t n);
int memcmp (void const *s1, void const *s2, size_t n);
size_t strlen (char const*);
int strcmp (char const*, char const*);

View File

@ -47,3 +47,9 @@ memset (void *s, int c, size_t n)
{
return 0;
}
int
memcmp (void const *s1, void const *s2, size_t n)
{
return 0;
}