/* @(#)root/clib:$Id: strlcpy.h 36336 2010-10-13 13:42:06Z rdm $ */
/* 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 <unistd.h>
#elif !defined(__CINT__)
#   include <sys/types.h>
#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 */
