libite: Add strlcat and strlcpy.

These function only exist on uClibc and BSD, so if they
not already defined in string.h, define them here.
This commit is contained in:
Mattias Walström committed 2013-01-29 13:29:45 +01:00
1 parent 7627b5848a
commit 77971a31b2
4 files changed
+134 -1

No files matched your search

+6
View File
@@ -42,6 +42,12 @@ int copy_filep (FILE *src, FILE *dst);
int dir (const char *dir, const char *type, int (*filter) (const char *file), char ***list, int strip);
int rsync (char *src, char *dst, int delete, int (*filter) (const char *file));
#ifndef strlcpy
size_t strlcpy (char *dst, const char *src, size_t siz);
#endif
#ifndef strlcat
size_t strlcat (char *dst, const char *src, size_t siz);
#endif
static inline int fisslashdir(char *dir)
{
if (!dir) return 0;