/* Copyright 2022-2023 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 . */ #include zap_i8 zap_eq(void const * const _lbuf,void const * const _rbuf,zap_sz const _num) { zap_i8 const * lbuf; zap_i8 const * rbuf; zap_i8 * const stop = (zap_i8 *)_lbuf + _num; for (lbuf = _lbuf,rbuf = _rbuf;lbuf != stop;++lbuf,++rbuf) { if (*lbuf != *rbuf) { return 0x0u; } } return 0x1u; }