home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
PROGRAMM
/
SERIAL.ZIP
/
ANSICPP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-29
|
633b
|
29 lines
/********************************************************************
* ansicpp.cpp - ANSI C++ Routines *
* Copyright (c) 1992 By Mark D. Goodwin *
********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "sercpp.h"
int ANSI::printf(char *f, ...)
{
int l;
va_list m;
char *b, *s;
if ((b = (char *)malloc(1024)) == NULL)
return -1;
va_start(m, f);
l = vsprintf(b, f, m);
s = b;
while (*s) {
ansiout(*s);
s++;
}
va_end(m);
free(b);
return l;
}