// that only the line that was just read is returned.
static std::string buf (512, ' ');
- int pos = 0; // pos in buffer
+ std::string::size_type pos = 0; // pos in buffer
int nb; // number of bytes read by ::read
char r; // temp var for storing output of read into
std::string::size_type length = buf.length ();