mescc: Tinycc support: memcpy stub.
* mlibc/include/string.h (memcpy): Declare. * mlibc/libc-mes+tcc.c (memcpy): Add stub.
This commit is contained in:
parent
ba6edad975
commit
7b8253cd47
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue