summaryrefslogtreecommitdiff
path: root/zap/source/amd64/mem/memcat.c
blob: 2b50ba749c831f4cc19615957783ad81515cafb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
	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>

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);
}