aboutsummaryrefslogtreecommitdiff
path: root/examples/strings.zc
blob: 710199632ed8491b03da5a3d019f80ed1c9100e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
namespace;
include rt;

void main() {
	let name = b"zc";
	let hi = b"hello, " + name;
	rt.put_s(hi); rt.put_c(10);
	rt.put_n(len(hi)); rt.put_c(32);
	rt.put_n(rt.s_to_n(b"40") + 2); rt.put_c(10);
	return;
}