Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/limbo/buf/bb.b

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


implement bb;

include "buf.m";
	buf : Buf;
	Data : import buf;

include "sys.m";
	sys : Sys;
include "draw.m";

bb: module
{
	init: fn(nil: ref Draw->Context, argv: list of string);
};

init(nil: ref Draw->Context, nil: list of string)
{
	sys = load Sys Sys->PATH;
	buf = load Buf Buf->PATH;


	d := buf->new("abcdefghijklmnopq");
	sys->print("%s", d.gets('e'));
}


# Put Limbo bb

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].