Category : Files from Magazines
Archive   : CUJ9405.ZIP
Filename : RDBUF.C

 
Output of file : RDBUF.C contained in archive : CUJ9405.ZIP


----------- Listing 6: The function ios::rdbuf(streambuf *) -----------

// iosrdbuf -- ios::rdbuf(streambuf *)
#include

streambuf *ios::rdbuf(streambuf *nb)
{ // set new streambuf
streambuf *ob = _Sb;
_Sb = nb;
clear(goodbit);
return (ob);
}