#include <strstrea.h>char *str();
The str( ) function is a member of strstream.
The str( ) function “freezes” a dynamically allocated input array and returns a pointer to it. Once a dynamic array is frozen, it may not be used for output again. Therefore, you will not want to freeze the array until you are through outputting characters to it.
NOTE: This function is for use with array-based I/O.
Related functions are strstream( ), istrstream( ), and ostrstream( ).