From 82ec99f51b2b3b7a7b36b43b22df07ec503158b8 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 17 Oct 2024 17:38:07 +0300 Subject: task7 initial commit --- 7_2/include/input.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 7_2/include/input.h (limited to '7_2/include/input.h') 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 -- cgit v1.2.3-70-g09d2