Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : VPRINTF.C

 
Output of file : VPRINTF.C contained in archive : VCCRT2.ZIP
/***
*vprintf.c - printf from a var args pointer
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines vprintf() - print formatted data from an argument list pointer
*
*******************************************************************************/

#include
#include
#include
#include
#include
#include


/***
*int vprintf(format, ap) - print formatted data from an argument list pointer
*
*Purpose:
* Prints formatted data items to stdout. Uses a pointer to a
* variable length list of arguments instead of an argument list.
*
*Entry:
* char *format - format string, describes data format to write
* va_list ap - pointer to variable length arg list
*
*Exit:
* returns number of characters written
*
*Exceptions:
*
*******************************************************************************/

int
vprintf ( format, ap )
const char *format;
va_list ap;
/*
* stdout 'V'ariable, 'PRINT', 'F'ormatted
*/
{
REG1 FILE _NEAR_ *stream = stdout;
REG2 int buffing;
REG3 int retval;

assert(format != NULL);

#ifdef _QWIN
/* If QWIN system is not used, stdout is not supported. */
if (!_qwinused)
return(EOF);
#endif

buffing = _stbuf(stream);
retval = _output(stream, format, ap );
_ftbuf(buffing, stream);

return(retval);
}


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : VPRINTF.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/