1 #include <exec/rawfmt.h>
2 #include <proto/exec.h>
6 int __nocommandline
= 1;
18 printf("Checking NewRawDoFmt...\n");
19 NewRawDoFmt("%s plus %s will be %lu", (VOID_FUNC
)RAWFMTFUNC_COUNT
, &count
, "one", "two", 3);
20 printf("Count is %u\n", count
);
21 NewRawDoFmt("%s plus %s will be %lu", (VOID_FUNC
)RAWFMTFUNC_STRING
, buf
, "one", "two", 3);
22 printf("Formatted string is: %s\n", buf
);
23 NewRawDoFmt("%s plus %s will be %lu\n", (VOID_FUNC
)RAWFMTFUNC_SERIAL
, NULL
, "one", "two", 3);
24 printf("Serial output done\n");
27 printf("Checking RawDoFmt...\n");
28 RawDoFmt("%s plus %s will be %lu", args
, (VOID_FUNC
)RAWFMTFUNC_COUNT
, &count
);
29 printf("Count is %u\n", count
);
30 RawDoFmt("%s plus %s will be %lu", args
, (VOID_FUNC
)RAWFMTFUNC_STRING
, buf
);
31 printf("Formatted string is: %s\n", buf
);
32 RawDoFmt("%s plus %s will be %lu\n", args
, (VOID_FUNC
)RAWFMTFUNC_SERIAL
, NULL
);
33 printf("Serial output done\n");