/* @(#)root/clib:$Id$ */ /* Author: Fons Rademakers 20/9/2010 */ /* Inlcude file for strlcpy and strlcat. They are in string.h on systems that have these function (BSD based systems). */ #ifndef ROOT_strlcpy #define ROOT_strlcpy #ifndef ROOT_RConfig #include "RConfig.h" #endif #if !defined(__CINT__) #ifndef HAS_STRLCPY #ifndef WIN32 # include #elif !defined(__CINT__) # include #endif #ifdef __cplusplus extern "C" { #endif size_t strlcpy(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz); #ifdef __cplusplus } #endif #endif /* HAS_STRLCPY */ #else size_t strlcpy(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz); #endif /* __CINT__ */ #endif /* ROOT_strlcpy */