7 #include "cln/string.h"
13 #include "cl_spushstring.h"
17 const cl_string cl_fgetline (std::istream& stream, char delim)
19 var cl_spushstring buffer;
20 // Handling of eofp is tricky: EOF is reached when (!stream.good()) || (stream.get()==EOF).
21 while (stream.good()) {
22 var int c = stream.get();
24 break; // std::ios::eofbit already set
29 return buffer.contents();