mempcpy.c (cf8e5289a110954600f135024d1515a77d0ae34d) | mempcpy.c (0c47b9c211ede221629914ae0c5553586e772109) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2021 The FreeBSD Foundation 5 * 6 * This software was developed by Konstantin Belousov <kib@FreeBSD.org> 7 * under sponsorship from the FreeBSD Foundation. 8 * --- 18 unchanged lines hidden (view full) --- 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <string.h> 32#include <ssp/ssp.h> 33 34void * | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2021 The FreeBSD Foundation 5 * 6 * This software was developed by Konstantin Belousov <kib@FreeBSD.org> 7 * under sponsorship from the FreeBSD Foundation. 8 * --- 18 unchanged lines hidden (view full) --- 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <string.h> 32#include <ssp/ssp.h> 33 34void * |
35__ssp_real(mempcpy)(void *__restrict dst, const void *__restrict src, | 35(mempcpy)(void *__restrict dst, const void *__restrict src, |
36 size_t len) 37{ 38 return ((char *)memcpy(dst, src, len) + len); 39} | 36 size_t len) 37{ 38 return ((char *)memcpy(dst, src, len) + len); 39} |