mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +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
73b43b4f2b
commit
407a47dd12
6 files changed
+77
-5
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