Add strlcpy()/strlcat()

Refactor recurse() routine in preparation to moving tar(1) over
to use it instead of the ftw() interface.
This commit is contained in:
sin
2014-01-30 12:37:35 +00:00
parent 08ff1c56e7
commit fb12183c52
5 changed files with 88 additions and 16 deletions

4
util.h
View File

@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
#include <stddef.h>
#include "arg.h"
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
@@ -20,4 +20,6 @@ long estrtol(const char *, int);
void fnck(const char *, const char *, int (*)(const char *, const char *));
void putword(const char *);
void recurse(const char *, void (*)(const char *));
size_t strlcat(char *, const char *, size_t);
size_t strlcpy(char *, const char *, size_t);
void weprintf(const char *, ...);