#ifndef UTIL_H #define UTIL_H #include // misc. defines and methods #define EXIT_SUCCESS 0 #define EXIT_FAILURE 1 // for input handling consistency void clear_stdin(); // self-explanatory bool is_int_in_range(int x, int start, int end); #endif // UTIL_H