mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-30 19:34:50 +00:00
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.
12 lines
248 B
C
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
|