From 392c6fb53c46fab93b651efd95c40972d4a936bf Mon Sep 17 00:00:00 2001 From: zolliker Date: Tue, 21 Aug 2012 06:50:49 +0000 Subject: [PATCH] - strlcpy and strlcat for systems that do not have it --- strlutil.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 strlutil.h diff --git a/strlutil.h b/strlutil.h new file mode 100644 index 00000000..7a603939 --- /dev/null +++ b/strlutil.h @@ -0,0 +1,18 @@ +/* + * strlutil.h + * Provide strcpy, strlcat when not provided by ssystem + * + * Created on: Mar 25, 2010 + * Author: koennecke + */ + +#ifndef STRLUTIL_H_ +#define STRLUTIL_H_ + +#ifndef strlcpy +size_t strlcat(char *dst, const char *src, size_t siz); +size_t strlcpy(char *dst, const char *src, size_t siz); +#endif + + +#endif /* STRLUTIL_H_ */