From: Alan Cox Date: Sat, 30 Jun 2018 22:07:58 +0000 (+0100) Subject: z80: add memmove prototype X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5191d18ebf3b03b6a77b64bdc36ee9df59caae11;p=FUZIX.git z80: add memmove prototype --- diff --git a/Kernel/cpu-z80/cpu.h b/Kernel/cpu-z80/cpu.h index 3c8de8e0..859500af 100644 --- a/Kernel/cpu-z80/cpu.h +++ b/Kernel/cpu-z80/cpu.h @@ -47,6 +47,8 @@ extern char *strncpy(char *dest, const char *src, size_t n); extern char *strchr(const char *s, int c); extern void *memset(void *dest, int c, size_t n); #endif +/* There is no compiler optimized inline memmove */ +extern void *memmove(void *dest, const void *src, size_t n); extern int16_t strlen(const char *p); @@ -91,4 +93,4 @@ typedef union { /* this structure is endian dependent */ /* SDCC does not support attribute(packed) but then it also doesn't insert padding either */ -#define __packed \ No newline at end of file +#define __packed