Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/src/futharc/badrune.c

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


#include <u.h>
#include <libc.h>

void
main(void)
{
	char buf[512], *p, *e;

	p = buf;
	e = buf + sizeof buf;

	p = seprint(p, e, "#!/bin/rc\n");
	p = seprint(p, e, "echo hel\xc0;echo 2nd line\n");
	p = seprint(p, e, "echo 3 byte\xe0α\n");
	p = seprint(p, e, "echo 3 byte\xe0;echo y\n");
	p = seprint(p, e, "echo 4 byte\xf0\x92\x80y\n");
	p = seprint(p, e, "#echo 3 byte\xe0");
	write(1, buf, p - buf);
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.