mirror of
https://github.com/troglobit/libite.git
synced 2026-10-30 12:40:38 +00:00
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:
1 parent
7627b5848a
commit
77971a31b2
4 files changed
+134
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user