xref: /netbsd-src/external/bsd/libevent/dist/strlcpy-internal.h (revision 657871a79c9a2060a6255a242fa1a1ef76b56ec6)
1 /*	$NetBSD: strlcpy-internal.h,v 1.1.1.4 2021/04/07 02:43:14 christos Exp $	*/
2 #ifndef STRLCPY_INTERNAL_H_INCLUDED_
3 #define STRLCPY_INTERNAL_H_INCLUDED_
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 #include "event2/event-config.h"
10 #include "event2/visibility.h"
11 #include "evconfig-private.h"
12 
13 #ifndef EVENT__HAVE_STRLCPY
14 #include <string.h>
15 EVENT2_EXPORT_SYMBOL
16 size_t event_strlcpy_(char *dst, const char *src, size_t siz);
17 #define strlcpy event_strlcpy_
18 #endif
19 
20 #ifdef __cplusplus
21 }
22 #endif
23 
24 #endif
25 
26