| 18 | } |
| 19 | |
| 20 | int readCharS(const char **input) { |
| 21 | int c = '\0'; |
| 22 | do { |
| 23 | c = *(*input)++; |
| 24 | } while (c == ' ' || c == '\t' || c == '\r' || c == '\n'); |
| 25 | if (!c) { |
| 26 | --c; |
| 27 | return EOF; |
| 28 | } |
| 29 | return c; |
| 30 | } |
| 31 | |
| 32 | int readCoordF(FILE *input, Point2 &coord) { |
| 33 | return fscanf(input, "%lf , %lf", &coord.x, &coord.y); |
no outgoing calls
no test coverage detected