Rune - Further Object abstraction work
[rune.git] / tests / sstr.d
1 #!/usr/local/bin/rune -x
2 #
3
4 import "sys";
5 import <stdio>;
6
7 int
8 main(int ac, string_p *av)
9 {
10     stdio.stdout->format("0 97 98 99 10 -> ");
11     stdio.stdout->show('', 'a', 'b', 'c', '\n');
12
13     stdio.stdout->format("0x6162 -> ");
14     stdio.stdout->format("0x%04x\n", 'ab');
15
16     stdio.stdout->format("0x61626364 -> ");
17     stdio.stdout->format("0x%08x\n", 'abcd');
18
19     stdio.stdout->format("0x6162636465666768 -> ");
20     stdio.stdout->format("0x%08x\n", 'abcdefgh');
21
22     stdio.stdout->format("#abcd1024 (0x6162636480000400) -> ");
23     stdio.stdout->format("0x%016x\n", #abcd1024);
24
25     return(0);
26 }