quit.c

ds2.10/fluffos-2.16-ds05/testsuite/command/quit.c · 267 B

From the archive ds2.10.zip

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