Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : OSTRCHAR.CXX

 
Output of file : OSTRCHAR.CXX contained in archive : VCCRT1.ZIP
/***
* ostrchar.cxx - definitions for ostream class operator<<(char) functions.
*
* Copyright (c) 1991-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Contains the member function definitions for ostream operator<<(char).
*
*******************************************************************************/

#include
#include
#pragma hdrstop

// note: called inline by char and signed char versions:
ostream& ostream::operator<<(unsigned char c)
{
if (opfx())
{
if (x_width)
{
_WINSTATIC char outc[2];
outc[0] = c;
outc[1] = '\0';
writepad("",outc);
}
else if (bp->sputc(c)==EOF)
{
if (bp->overflow(c)==EOF)
state |= (badbit|failbit); // fatal error?
}
osfx();
}
return *this;
}


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : OSTRCHAR.CXX

  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/