quit.c

v22.2b14/testsuite/command/quit.c · 241 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

#include <command.h>

#ifdef __NO_ENVIRONMENT__
#define say(x) shout(x)
#endif

int
main(string arg)
{
	write("Bye.\n");
	say((string)previous_object()->query_name()
		+ " leaves this reality.\n");
	previous_object()->remove();
	return 1;
}

Site Stats

Snippets: 1791
Codebases: 571