shithub: battleship

ref: d9752f9750402f01386dceb3606b6cba7a675155
dir: /fns.h/

View raw version
#define HZ2MS(hz)	(1000/(hz))

/*
 * alloc
 */
void *emalloc(ulong);
void *erealloc(void*, ulong);
Image *eallocimage(Display*, Rectangle, ulong, int, ulong);

/*
 * util
 */
char *cell2coords(Point2);
Point2 coords2cell(char*);