2021-02-10 13:16:04 -06:00
|
|
|
/* strndup.c
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-01-10 00:51:20 -06:00
|
|
|
/* Written by Niels Moeller <nisse@lysator.liu.se>
|
2021-02-10 13:16:04 -06:00
|
|
|
*
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|