2013-08-06 11:16:27 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
#include "arg.h"
|
|
|
|
|
|
|
|
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
|
|
|
|
#define LEN(x) (sizeof (x) / sizeof *(x))
|
|
|
|
|
|
|
|
extern char *argv0;
|
|
|
|
|
2013-08-14 14:38:43 +00:00
|
|
|
char *agetcwd(void);
|
|
|
|
void apathmax(char **, long *);
|
2013-08-29 10:14:00 +00:00
|
|
|
void devtotty(int, int *, int *);
|
2013-08-06 11:16:27 +00:00
|
|
|
void enprintf(int, const char *, ...);
|
2013-08-14 14:38:43 +00:00
|
|
|
void eprintf(const char *, ...);
|
2013-08-06 11:16:27 +00:00
|
|
|
long estrtol(const char *, int);
|
2013-08-29 10:11:26 +00:00
|
|
|
void putword(const char *);
|
2013-08-14 14:38:43 +00:00
|
|
|
void recurse(const char *, void (*)(const char *));
|
2014-02-10 13:14:12 +00:00
|
|
|
#undef strlcat
|
2013-09-04 10:27:29 +00:00
|
|
|
size_t strlcat(char *, const char *, size_t);
|
2014-02-10 13:14:12 +00:00
|
|
|
#undef strlcpy
|
2013-09-04 10:27:29 +00:00
|
|
|
size_t strlcpy(char *, const char *, size_t);
|
2013-08-29 10:14:00 +00:00
|
|
|
char *ttytostr(int, int);
|
2014-03-12 14:18:29 +00:00
|
|
|
void weprintf(const char *, ...);
|