ubase/util.h

51 lines
1023 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))
/* eprintf.c */
extern char *argv0;
/* agetcwd.c */
2013-08-14 10:38:43 -04:00
char *agetcwd(void);
/* apathmax.c */
2013-08-14 10:38:43 -04:00
void apathmax(char **, long *);
/* eprintf.c */
void enprintf(int, const char *, ...);
2013-08-14 10:38:43 -04:00
void eprintf(const char *, ...);
void weprintf(const char *, ...);
/* ealloc.c */
void *ecalloc(size_t, size_t);
void *emalloc(size_t size);
void *erealloc(void *, size_t);
char *estrdup(const char *);
/* estrtol.c */
long estrtol(const char *, int);
/* explicit_bzero.c */
2014-04-30 07:25:29 -04:00
#undef explicit_bzero
void explicit_bzero(void *, size_t);
/* putword.c */
2013-08-29 06:11:26 -04:00
void putword(const char *);
/* recurse.c */
2013-08-14 10:38:43 -04:00
void recurse(const char *, void (*)(const char *));
/* strlcpy.c */
#undef strlcat
2013-09-04 06:27:29 -04:00
size_t strlcat(char *, const char *, size_t);
/* strlcat.c */
#undef strlcpy
2013-09-04 06:27:29 -04:00
size_t strlcpy(char *, const char *, size_t);
/* tty.c */
void devtotty(int, int *, int *);
char *ttytostr(int, int);