1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/sourcepawn/compiler/lstring.h Sun Mar 30 07:00:22 2008 +0000
1.3 @@ -0,0 +1,18 @@
1.4 +/* prototypes for strlcpy() and strlcat() */
1.5 +
1.6 +#include <stddef.h>
1.7 +
1.8 +#if defined __WATCOMC__ && __WATCOMC__ >= 1240
1.9 + /* OpenWatcom introduced BSD "safe string functions" with version 1.4 */
1.10 + #define HAVE_SAFESTR
1.11 +#endif
1.12 +
1.13 +#if !defined HAVE_SAFESTR
1.14 +
1.15 +size_t
1.16 +strlcpy(char *dst, const char *src, size_t siz);
1.17 +
1.18 +size_t
1.19 +strlcat(char *dst, const char *src, size_t siz);
1.20 +
1.21 +#endif