ubase/util.h

22 lines
605 B
C
Raw Normal View History

/* 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 10:38:43 -04:00
char *agetcwd(void);
void apathmax(char **, long *);
void devtotty(int, int *, int *);
void enprintf(int, const char *, ...);
2013-08-14 10:38:43 -04:00
void eprintf(const char *, ...);
long estrtol(const char *, int);
2013-08-29 06:11:26 -04:00
void putword(const char *);
2013-08-14 10:38:43 -04:00
void recurse(const char *, void (*)(const char *));
#undef strlcat
2013-09-04 06:27:29 -04:00
size_t strlcat(char *, const char *, size_t);
#undef strlcpy
2013-09-04 06:27:29 -04:00
size_t strlcpy(char *, const char *, size_t);
char *ttytostr(int, int);