/usr/include/root/strlcpy.h is in libroot-core-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | /* @(#)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 <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 */
|