Refactor GUI code, add grid layout by Dave Ball
[qi-bootmenu.git] / util.h
blob3d67efdef7af0a1c26fd0a068cb34ec506726e02
1 #define countof(arr) (sizeof(arr) / sizeof((arr)[0]))
2 #define sstrlen(str) (sizeof(str) - 1)
4 #ifdef NDEBUG
5 #define debug(format, args...)
6 #else
7 #define debug eprint
8 #endif
10 void eprint(const char *errstr, ...);
11 void skip_until(char** str, char c);
12 void skip_spaces(char **str);
13 int fexecw(const char *path, char *const argv[], char *const envp[]);