💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › 8a3f51f354464f956f39fdfc0ae41… captured on 2023-05-24 at 18:13:13. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
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