home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff279.lzh
/
MRPrint
/
Test.c
< prev
Wrap
C/C++ Source or Header
|
1989-11-20
|
437b
|
25 lines
#include <functions.h>
char outstring[256];
unsigned length;
int intValue = 1234;
long longValue = 567890L;
MyPutChar(c, buffer)
int c; char *buffer;
{
printf("buffer = %ld\n", buffer);
outstring[length++] = c;
}
main()
{
RawDoFormat("string: %s", "A String", MyPutChar, outstring);
RawDoFormat(" int: %d", &intValue, MyPutChar, outstring);
RawDoFormat(" long: %ld", &longValue, MyPutChar, outstring);
puts(outstring);
}