Skip to content
Snippets Groups Projects
Commit 05f30526 authored by Byron Lathi's avatar Byron Lathi
Browse files

add memcpy

shamelessly stolen from newlib
parent c245b210
No related branches found
No related tags found
No related merge requests found
......@@ -322,6 +322,20 @@ uint32_t strncpy(const int8_t* src, int8_t* dest, uint32_t n)
return 0;
}
void* memccpy (void *__restrict dst0, const void *__restrict src0, uint32_t len0)
{
void *ptr = NULL;
char *dst = (char *) dst0;
char *src = (char *) src0;
while (len0--)
{
*dst++ = *src++;
}
return ptr;
}
/*
* These font data were read out of video memory during text mode and
......
......@@ -33,6 +33,7 @@ uint32_t strlen(const int8_t* s);
uint32_t strncmp(const int8_t* a, const int8_t* b, uint32_t n);
uint32_t strcpy(const int8_t* src, int8_t* dest);
uint32_t strncpy(const int8_t* src, int8_t* dest, uint32_t n);
void* memccpy (void *__restrict dst0, const void *__restrict src0, uint32_t len0);
void clear(void);
extern unsigned char font_data[256][16];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment