x11gfx.hidd: support 32 bit modes
[AROS.git] / test / sdi / examples / libraries / example_libtest.c
blob93bda656408d02d2f46cfbcf52f37cd9512eb38a
1 #include <proto/example.h>
2 #include <proto/exec.h>
4 #include <stdio.h>
6 char buf[100];
8 // SPrintfA() uses RawDoFormat()
9 #pragma pack(2)
10 struct Data
12 LONG longval;
13 WORD wordval;
14 STRPTR str;
15 } data = {10000000, 1001, "Hello"};
16 #pragma pack()
18 int main(void)
20 puts(SayHelloOS3());
21 puts(SayHelloOS4());
22 puts(SayHelloMOS());
23 puts(Uppercase("hElLo ArOs!!!"));
25 puts(SPrintfA(buf, "TEST LONG %ld WORD %d STRING %s", &data));
27 // variadic; again special treatment because of RawDoFmt()
28 puts(SPrintf(buf, "TEST LONG %ld WORD %ld STRING %s", 10000000, (LONG)1001, (IPTR)"Hello"));
30 return 0;