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

14 lines
240 B
C

#include "util.h"
#include <stdio.h>
void clear_stdin() {
while (getchar() != '\n');
}
bool is_int_in_range(int x, int start, int end) {
if (start <= x && x <= end) {
return true;
} else {
return false;
}
}