mescc: Tinycc support: memcpy stub.

* mlibc/include/string.h (memcpy): Declare.
* mlibc/libc-mes+tcc.c (memcpy): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 12:43:04 +02:00
parent ba6edad975
commit 7b8253cd47
2 changed files with 9 additions and 0 deletions

View file

@ -39,6 +39,8 @@ typedef unsigned long size_t;
typedef long ssize_t;
#endif
void *memcpy (void *dest, void const *src, size_t n);
size_t strlen (char const*);
int strcmp (char const*, char const*);
int strncmp (char const*, char const*, size_t);

View file

@ -19,6 +19,7 @@
*/
#include <libc-mes.c>
#include <string.h>
void
close ()
@ -28,3 +29,9 @@ close ()
asm ("mov____$i32,%eax SYS_close");
asm ("int____$0x80");
}
void *
memcpy (void *dest, void const *src, size_t n)
{
return 0;
}