muon/include/memmem.h
Stone Tickle 2a24e9f7e7
support in operator for strings
In order to accomplish this, memmem from musl was vendored.  This is
because we cannot use strstr as meson strings may contain NUL.
Unfortunately memmem is not posix so vendoring was necessary to maintain
strict posix compliance.
2023-04-10 07:16:59 -04:00

12 lines
248 B
C

/*
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
* SPDX-License-Identifier: GPL-3.0-only
*/
#ifndef MUON_MEMMEM_H
#define MUON_MEMMEM_H
#include <unistd.h>
void *memmem(const void *h0, size_t k, const void *n0, size_t l);
#endif