shadow/libmisc/mempcpy.c
Alejandro Colomar e0e9e57a72 Add mempcpy(3)
We'll use it for implementing stpecpy(), and may be interesting to have
it around.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-02-16 11:29:33 +01:00

24 lines
329 B
C

/*
* SPDX-FileCopyrightText: 2023, Alejandro Colomar <alx@kernel.org>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <config.h>
#if !defined(HAVE_MEMPCPY)
#ident "$Id$"
#include "mempcpy.h"
#include <stddef.h>
extern inline void *mempcpy(void *restrict dst, const void *restrict src,
size_t n);
#endif