home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
cuj9301.zip
/
1101108A
< prev
next >
Wrap
Text File
|
1992-11-03
|
408b
|
26 lines
#include <stdarg.h>
char *PrintString(const char *fmt, ...)
/* Convert printf() arguments into a static string. */
{
va_list args;
static char line[999];
va_start(args, fmt);
vsprintf(line, fmt, args);
va_end(args);
return line;
}
void Msg(const char *fmt, ...)
/* Send message to stdout user. */
{
char *line;
line = PrintString(fmt);
print("%s\n", line);
...
}