ubase/util.h
2013-08-15 16:50:48 +01:00

17 lines
489 B
C

/* 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;
char *agetcwd(void);
void apathmax(char **, long *);
void devtotty(int dev, int *tty_maj, int *tty_min);
void enprintf(int, const char *, ...);
void eprintf(const char *, ...);
long estrtol(const char *, int);
void recurse(const char *, void (*)(const char *));
char *ttytostr(int tty_maj, int tty_min);