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