17 lines
271 B
C
17 lines
271 B
C
#ifndef UTIL_H
|
|
#define UTIL_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
// 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
|