aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/08-byte-strings.zc
blob: fb7a8d9c849f9c9569c62db4acbd8f545dba1c30 (plain) (blame)
1
2
3
4
5
6
7
8
9
namespace;
include rt;
fn 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);
}