0 /* See LICENSE file for copyright and license details. */
1 #ifndef _STR_H_
2 #define _STR_H_
3
4 #include <stddef.h>
5
6 #ifdef __linux__
7 #define NO_STRLCPY
8 #define NO_STRLCAT
9 #define NO_STRNSTR
10 #endif
11
12 #ifdef __OpenBSD__
13 #define NO_STRNSTR
14 #endif
15
16 #ifdef NO_STRLCPY
17 size_t strlcpy(char *dst, const char *src, size_t dsize);
18 #endif
19
20 #ifdef NO_STRLCAT
21 size_t strlcat(char *dst, const char *src, size_t dsize);
22 #endif
23
24 #ifdef NO_STRNSTR
25 char* strnstr(const char *s, const char *find, size_t slen);
26 #endif
27
28 #endif
29