summaryrefslogtreecommitdiff
path: root/zap/source/amd64/mem/memcat.c
blob: f3e9a9b8cdd1a29d79b64e6bdd6de3d639f4032a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
	Copyright 2022 Gabriel Jensen.
	This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
	If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

#include <zap/priv.h>

#include <zap/mem.h>

#include <stddef.h>

void zap_memcat(void const * const _lptr,zap_sz const _llen,void const * const _rptr,zap_sz const _rlen,void * const _buf) {
	zap_memcp(_lptr,_llen,_buf);
	zap_memcp(_rptr,_rlen,(unsigned char *)_buf + _llen);
}