strstream, istrstream, and ostrstream

str

#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( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net