ostrstream::str

char *str();

The member function returns rdbuf()-> str().