strlcpy.h

Go to the documentation of this file.
00001 /* @(#)root/clib:$Id: strlcpy.h 36336 2010-10-13 13:42:06Z rdm $ */
00002 /* Author: Fons Rademakers  20/9/2010 */
00003 
00004 /*
00005    Inlcude file for strlcpy and strlcat. They are in string.h on systems
00006    that have these function (BSD based systems).
00007 */
00008 
00009 #ifndef ROOT_strlcpy
00010 #define ROOT_strlcpy
00011 
00012 #ifndef ROOT_RConfig
00013 #include "RConfig.h"
00014 #endif
00015 
00016 #if !defined(__CINT__)
00017 
00018 #ifndef HAS_STRLCPY
00019 
00020 #ifndef WIN32
00021 #   include <unistd.h>
00022 #elif !defined(__CINT__)
00023 #   include <sys/types.h>
00024 #endif
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 size_t strlcpy(char *dst, const char *src, size_t siz);
00031 size_t strlcat(char *dst, const char *src, size_t siz);
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036 
00037 #endif /* HAS_STRLCPY */
00038 
00039 #else
00040 
00041 size_t strlcpy(char *dst, const char *src, size_t siz);
00042 size_t strlcat(char *dst, const char *src, size_t siz);
00043 
00044 #endif /* __CINT__ */
00045 
00046 #endif /* ROOT_strlcpy */

Generated on Tue Jul 5 14:11:24 2011 for ROOT_528-00b_version by  doxygen 1.5.1