MCPcopy Create free account
hub / github.com/MyGUI/mygui / readCharS

Function readCharS

MyGUIEngine/src/msdfgen/core/shape-description.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20int 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
32int readCoordF(FILE *input, Point2 &coord) {
33 return fscanf(input, "%lf , %lf", &coord.x, &coord.y);

Callers 1

readShapeDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected