Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/strlcpy.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* @(#)root/clib:$Id$ */
0002 /* Author: Fons Rademakers  20/9/2010 */
0003 
0004 /*
0005    Inlcude file for strlcpy and strlcat. They are in string.h on systems
0006    that have these function (BSD based systems).
0007 */
0008 
0009 #ifndef ROOT_strlcpy
0010 #define ROOT_strlcpy
0011 
0012 #include <ROOT/RConfig.hxx>
0013 
0014 #ifndef HAS_STRLCPY
0015 
0016 #ifndef WIN32
0017 #   include <unistd.h>
0018 #else
0019 #   include <sys/types.h>
0020 #endif
0021 
0022 #ifdef __cplusplus
0023 extern "C" {
0024 #endif
0025 
0026 size_t strlcpy(char *dst, const char *src, size_t siz);
0027 size_t strlcat(char *dst, const char *src, size_t siz);
0028 
0029 #ifdef __cplusplus
0030 }
0031 #endif
0032 #endif /* HAS_STRLCPY */
0033 
0034 #endif /* ROOT_strlcpy */