Plan 9 from Bell Labs’s /usr/web/sources/extra/art/debug.c

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


/*
 * print debug messages
 */
#include "art.h"
void bug(char *fmt, ...){
	char buf[200];
	va_list arg;

	va_start(arg, fmt);
	vseprint(buf, buf+sizeof(buf), fmt, arg);
	va_end(arg);
	msg("%s", buf);
	if(button123()){
		while(button123()) getmouse();
		while(!button123()) getmouse();
	}
	else{
		while(!button123()) getmouse();
		while(button123()) getmouse();
	}
}

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.