home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!walter!plate!vidal
- From: vidal@bae.bellcore.com (Vidal Graupera)
- Subject: strstream question
- Message-ID: <1992Aug18.142928.14515@walter.bellcore.com>
- Sender: vidal@plate (Vidal Graupera)
- Nntp-Posting-Host: plate.bae.bellcore.com
- Organization: Bellcore
- Date: Tue, 18 Aug 92 14:29:28 GMT
- Lines: 21
-
- I want to change the string in an existing strstream.
- This is what I tried on a Sun using their 2.1 compiler:
-
- char p[100];
- ostrstream tstream(p, 100);
-
- // do some stuff with tstream
-
- char t[100];
- tstream.rdbuf()->setbuf(t,100);
-
- // tstream still uses p NOT t
-
- Any help much appreciated.
-
- Vidal Graupera
- Bellcore
-
- email: vidal@bae.bellcore.com
-
-
-