2008-03-30 09:00:22 +02:00
|
|
|
/* prototypes for strlcpy() and strlcat() */
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#if defined __WATCOMC__ && __WATCOMC__ >= 1240
|
|
|
|
/* OpenWatcom introduced BSD "safe string functions" with version 1.4 */
|
|
|
|
#define HAVE_SAFESTR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined HAVE_SAFESTR
|
|
|
|
|
2014-08-22 08:58:19 +02:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
# define EXPORT extern "C"
|
|
|
|
#else
|
|
|
|
# define EXPORT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
EXPORT size_t
|
2008-03-30 09:00:22 +02:00
|
|
|
strlcpy(char *dst, const char *src, size_t siz);
|
|
|
|
|
2014-08-22 08:58:19 +02:00
|
|
|
EXPORT size_t
|
2008-03-30 09:00:22 +02:00
|
|
|
strlcat(char *dst, const char *src, size_t siz);
|
|
|
|
|
2014-08-22 08:58:19 +02:00
|
|
|
#undef EXPORT
|
|
|
|
|
2008-03-30 09:00:22 +02:00
|
|
|
#endif
|