Category : Files from Magazines
Archive   : CUJ9407.ZIP
Filename : ISGSTRM.C

 
Output of file : ISGSTRM.C contained in archive : CUJ9407.ZIP
// isgstream -- istream::get(streambuf&, char)
#include

istream& istream::get(streambuf&sb, char delim)
{ // get into streambuf until delimiter
_Chcount = 0;
_TRY_IO_BEGIN
if (ipfx(1))
{ // copy characters until failure
int ch;
for (; (ch = rdbuf()->sbumpc()) != EOF; ++_Chcount)
_TRY_BEGIN
if (ch == delim || sb.sputc(ch) == EOF)
break;
_CATCH_ALL
break;
_CATCH_END
if (ch != EOF)
rdbuf()->sputbackc(ch);
}
if (_Chcount == 0)
setstate(failbit);
isfx();
_CATCH_IO_END
return (*this);
}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9407.ZIP
Filename : ISGSTRM.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/