raz
/
test
/
run
/ BufCut.raz
about
files
log
releases
feed
14 lines · 273 B ·
raw
·
history
· last change
3fee2db6
1
module
BufCut;
2
(* Buf.cut past what the buffer holds says so, with the calls under
3
way, and stops the program with status 2 *)
4
import
Buf, Heap;
5
6
proc
main*;
7
var
b: Buf.Buf;
8
begin
9
Buf.init(b, Heap.heap);
10
Buf.str(b,
"hello"
);
11
Buf.cut(b,
6
);
12
end
;
13
14
end
BufCut.