MCPcopy Create free account
hub / github.com/Singular/Singular / readUntil

Function readUntil

gfanlib/gfanlib_polymakefile.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static string readUntil(istream &f, int c)
36{
37 stringstream ret;
38 int c2;
39 c2=f.get();
40// c2=fgetc(f);
41// while(c2!=c && c2!=EOF)
42 while(c2!=c && !f.eof())
43 {
44 ret<<char(c2);
45 //c2=fgetc(f);
46 c2=f.get();
47 }
48 return ret.str();
49}
50
51static list<int> readIntList(istream &s)
52{

Callers 1

openMethod · 0.85

Calls 2

getMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected