mempcpy.c 270 Bytes
Newer Older
1 2 3 4
/* mempcpy.c
 *
 */

Niels Möller's avatar
Niels Möller committed
5
/* Written by Niels Möller <nisse@lysator.liu.se>
6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * This file is hereby placed in the public domain.
 */

#include <string.h>

void *
mempcpy (void *to, const void *from, size_t size)
{
  memcpy(to, from, size);
  return (char *) to + size;
}