diff options
Diffstat (limited to 'zap/source/amd64/mem/memcat.c')
-rw-r--r-- | zap/source/amd64/mem/memcat.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zap/source/amd64/mem/memcat.c b/zap/source/amd64/mem/memcat.c new file mode 100644 index 0000000..f3e9a9b --- /dev/null +++ b/zap/source/amd64/mem/memcat.c @@ -0,0 +1,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); +} |