aboutsummaryrefslogtreecommitdiffstats
path: root/7_2/include/input.h
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-10-17 17:38:07 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-10-17 17:38:07 +0300
commit82ec99f51b2b3b7a7b36b43b22df07ec503158b8 (patch)
tree4b308e68145ff124c50c7a5d4ebec8f0060d35e6 /7_2/include/input.h
parent5d294755542190ac5135af8e120e313b55828625 (diff)
task7 initial commit
Diffstat (limited to '7_2/include/input.h')
-rw-r--r--7_2/include/input.h24
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