1 /* @(#)root/clib:$Id$ */ 2 /* Author: Fons Rademakers 20/9/2010 */ 3 4 /* 5 Inlcude file for strlcpy and strlcat. They are in string.h on systems 6 that have these function (BSD based systems). 7 */ 8 9 #ifndef ROOT_strlcpy 10 #define ROOT_strlcpy 11 12 #ifndef ROOT_RConfig 13 #include "RConfig.h" 14 #endif 15 16 #if !defined(__CINT__) 17 18 #ifndef HAS_STRLCPY 19 20 #ifndef WIN32 21 # include <unistd.h> 22 #elif !defined(__CINT__) 23 # include <sys/types.h> 24 #endif 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 size_t strlcpy(char *dst, const char *src, size_t siz); 31 size_t strlcat(char *dst, const char *src, size_t siz); 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 #endif /* HAS_STRLCPY */ 38 39 #else 40 41 size_t strlcpy(char *dst, const char *src, size_t siz); 42 size_t strlcat(char *dst, const char *src, size_t siz); 43 44 #endif /* __CINT__ */ 45 46 #endif /* ROOT_strlcpy */ 47