blob: 24285b8e1f7cf824258dfaf9fa38f487174a3311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|