MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / read_item

Function read_item

src/openboardview/FileFormats/ADFile.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24char *arena_end;
25
26char *read_item(char *p) {
27 char *s;
28 char *r;
29
30 while ((*p) && (isspace((uint8_t)*p))) ++p;
31 s = p;
32 while ((*p) && (!isspace((uint8_t)*p)) && (*p != '|')) ++p;
33 *p = 0;
34 r = strdup(s);
35 *p = '|';
36 return fix_to_utf8(r, &arena, arena_end);
37}
38
39bool ADFile::verifyFormat(std::vector<char> &buf) {
40 bool isBinary = find_str_in_buf("Binary", buf);

Callers 1

ADFileMethod · 0.85

Calls 1

fix_to_utf8Function · 0.85

Tested by

no test coverage detected