#!/usr/local/bin/rune -x # # Demonstrate a loop. library limport "sys"; library import "stdio"; int main(int ac, char **av) { int8_t size8 = 1; int16_t size16 = 1; int32_t size32 = 1; int64_t size64 = 1; uint8_t usize8 = 1; uint16_t usize16 = 2; uint32_t usize32 = 1; uint64_t usize64 = 1; char buf[32]; Sys.bcopy("a", &buf[0], size8); Sys.bcopy("b", &buf[1], size16); Sys.bcopy("c", &buf[2], size32); Sys.bcopy("d", &buf[3], size64); Sys.bcopy("e", &buf[4], usize8); Sys.bcopy("ff", &buf[5], usize16); Sys.bcopy("g", &buf[7], usize32); Sys.bcopy("h", &buf[8], usize64); stdio.stdout->show("buf abcdeffgh -> ", &buf[0]); }