diff options
Diffstat (limited to '7_2/include/input.h')
-rw-r--r-- | 7_2/include/input.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/7_2/include/input.h b/7_2/include/input.h new file mode 100644 index 0000000..24285b8 --- /dev/null +++ b/7_2/include/input.h @@ -0,0 +1,24 @@ +#ifndef JAC_INPUT_H +#define JAC_INPUT_H + +#include "common.h" +#include "figure.h" + +extern void(*settings_handler)(const char *sett_string); + +// пропустить пробелы +void skipw(char const **s); +// проспустит цифры +void skipd(char const **s); +// проерить наличие символа +char chktok(char const **str, char tok); +// прочитать число +char parsel(char const **str, long *l); +// прочитать вектор из 2 чисел +char parsev(char const **str, vector2 *v); +// прочитать одну фигуру +struct figure read_figure(const char *str); +// прочитать целый файл +struct figure *read_file(const char *path); + +#endif // JAC_INPUT_H |