home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
AECUR101
/
AZTECSUB.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-10
|
824b
|
44 lines
/**********************************************************************
*
* aztecsub.c
*
* copyright (c) 1988,89,90 J. Alan Eldridge
*
* subroutine(s) needed by Curses which Aztec C does not supply
*
*********************************************************************/
#include "curses.h"
#include <stdarg.h>
#if AZTEC
/**********************************************************************
*
* vsprintf()
*
* like sprintf(), except gets a pointer to the args
*
*********************************************************************/
static char *cp;
static int
sputc(int c)
{
*cp++ = c;
}
int
vsprintf(
char *buf,
char *fmt,
va_list args)
{
cp = buf;
return format(sputc, fmt, args);
}
#endif /* AZTEC */