Plan 9 from Bell Labs’s /usr/web/sources/contrib/boyd/sys/src/cmd/8c/s.c

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


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

#define S	"//str"		// S
#define T	"/*str"		// T
#define U	"goop		/* U */
#define V	"goop\"		// V
#define W(r)	((r) > ' ' && !utfrune("!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~", (r)))
#define X	"goop\""	/* W */
#define Y(y)	"y\n"		/* Y */
#define Z	"y\\foo"	/* Z */

// i don't believe this

main(int argc, char *argv[])
{
	print(S);
	print(T);
	print(U);
	print(V);
	print(W(' ');
	print(X);
	print(Y(hello there); //russ made me do it
	print(Z);
	exits(0);
}

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.