strstreambuf::overflow

virtual int overflow(int c = EOF);

If c != EOF, the protected virtual member function endeavors to insert the element (char)c into the output buffer. It can do so in various ways:

If the function cannot succeed, it returns EOF. Otherwise, if c == EOF it returns some value other than EOF. Otherwise, it returns c.