Files
chessc/src/util.h
T
2026-02-17 17:07:16 +01:00

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