35 lines
583 B
C
Raw Normal View History

/* prototypes for strlcpy() and strlcat() */
#include <stddef.h>
2017-12-30 22:14:22 +06:00
#if defined __WATCOMC__ && __WATCOMC__ >= 1240
/* OpenWatcom introduced BSD "safe string functions" with version 1.4 */
#define HAVE_SAFESTR
#endif
2017-12-30 22:14:22 +06:00
#if defined strlcpy
#define HAVE_STRLCPY
#endif
#if defined strlcat
#define HAVE_STRLCAT
#endif
#if defined HAVE_SAFESTR
#define HAVE_STRLCPY
#define HAVE_STRLCAT
#endif
#if !defined HAVE_STRLCPY
size_t
strlcpy(char *dst, const char *src, size_t siz);
#endif
#if !defined HAVE_STRLCAT
size_t
strlcat(char *dst, const char *src, size_t siz);
#endif