This is probably one of the better use cases for the comma operator in C.
http://stackoverflow.com/questions/52550/what-does-the-opera...
string s;
while(read_string(s), s.len() > 5)
{
//do something
}
versus string s;
read_string(s);
while(s.len() > 5)
{
//do something
read_string(s);
}