MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetLine

Function GetLine

engine/Poseidon/IO/MapFile.cpp:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static void GetLine(char* line, int size, QIStream& in)
23{
24 char* l = line;
25 char c = in.get();
26 while (c != EOF && c != '\n')
27 {
28 if (size > 1)
29 {
30 if (c != '\r')
31 {
32 *l++ = c;
33 size--;
34 }
35 }
36 c = in.get();
37 }
38 if (size > 0)
39 {
40 *l = 0;
41 }
42}
43
44void MapFile::ParseMapFile()
45{

Callers 6

ParseMapFileMethod · 0.85
OnDrawMethod · 0.85
FindPosMethod · 0.85
OnDrawMethod · 0.85
DoKeyDownMethod · 0.85
FindPosMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected