Changeset 3625 for libcaca


Ignore:
Timestamp:
Aug 4, 2009, 1:26:28 AM (10 years ago)
Author:
Sam Hocevar
Message:

Implement memmove() in the kernel.

Location:
libcaca/trunk/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/kernel.c

    r3620 r3625  
    163163}
    164164
     165void *memmove(void *dest, const void *src, size_t n)
     166{
     167    memcpy(freemem, src, n);
     168    memcpy(dest, freemem, n);
     169    return dest;
     170}
     171
    165172size_t strlen(const char *s)
    166173{
  • libcaca/trunk/kernel/kernel.h

    r3620 r3625  
    8585void *memset(void *s, int c, size_t n);
    8686void *memcpy(void *dest, const void *src, size_t n);
     87void *memmove(void *dest, const void *src, size_t n);
    8788size_t strlen(const char *s);
    8889int strcmp(const char *s1, const char *s2);
Note: See TracChangeset for help on using the changeset viewer.