Example - stream buffers (cont.)
int streambuf::sputc(char c) { if (buffer full ) return overflow(c); else { add c to the buffer return c; } }