Category : C Source Code
Archive   : WIND.ZIP
Filename : W_PRINTF.C

 
Output of file : W_PRINTF.C contained in archive : WIND.ZIP
/* w_printf.c - part of windows package
*
* NOTE: This is the one module in the package which cannot be used
* jointly by the Borland and Microsoft compilers, since the
* functions called rely on global variables with different names.
*/

#include
#include "windows.h"

/*
* write a string, formatted by control string, to specified window
*
* calls: va_start(),
* vsprintf(),
* wputs()
*/

void w_printf(Window *w, char *format, ...)
{
va_list ptr;
char buf[2001];

va_start(ptr, format);
vsprintf(buf, format, ptr);
w_puts(buf, w);
}

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