1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2022 Alejandro Colomar <alx@kernel.org>
// SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception
#ifndef INCLUDE_C_STP_MEM_MEM_MEMMEM_H_
#define INCLUDE_C_STP_MEM_MEM_MEMMEM_H_
#include <stddef.h>
#include <string.h>
#include <c/qual/const/const.h>
#define c_memmem(h, hsz, n, nsz) c_const_generic_func(c_memmem, h, hsz, n, nsz)
#pragma clang assume_nonnull begin
inline const void *(c_memmem)(const void *haystack, size_t hsize,
const void *needle, size_t nsize);
inline const void *
(c_memmem)(const void *haystack, size_t hsize, const void *needle, size_t nsize)
{
return memmem(haystack, hsize, needle, nsize);
}
#pragma clang assume_nonnull end
#endif // Header guard
|