#ifndef H_COMMON_H
#define H_COMMON_H

#define __F __FUNCTION__
#define __L __LINE__

#define LINE 1024

extern char inbuf[LINE];
extern char outbuf[LINE];
extern int  outbufoffset;

void		err(const char *fmt, ...);
void		get_winsize(int *row, int *col);
char		hextoint(char *p);
struct fontset *initial(const char *fname);
struct character *bsearch4char(struct fontset *fset, const int target);

/*
 * sunos.4.1.3 complains that ioctl(2) has no function declaration, so I'd
 * like to insert following line
 */
int	ioctl(int fd, int request, ...);


#endif
