Fixed indentation.
[AROS.git] / test / rawdofmt.c
blobc115409d9e4e1710698c8b9e67f091b2631d315d
1 #include <exec/rawfmt.h>
2 #include <proto/exec.h>
4 #include <stdio.h>
6 int __nocommandline = 1;
8 int main(void)
10 char buf[256];
11 ULONG count = 0;
12 IPTR args[] = {
13 (IPTR)"one",
14 (IPTR)"two",
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");
26 count = 0;
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");
35 return 0;