efun.c

MudOS_0.9.19/src/testsuite/command/efun.c · 486 B

From the archive MudOS_0.9.19.tar.gz

Download the archive   « Back to the archive contents

#include <globals.h>

int
main(string fun)
{
	int result, which;
	string objname;

	if (!fun) {
		return notify_fail("efun what?\n");
	}
	objname = "/single/efuns/" + fun;
	which = 0;
	do {
		result = (int)call_other(objname, "test", which);
		if (result > -1) {
			write((string)call_other(objname, "query_test_info") + ": ");
			if (result == 1) {
				write("success.\n");
			} else if (result == 0) {
				write("failure.\n");
			}
		}
		which++;
	} while (result > -1);
	return 1;
}

Site Stats

Snippets: 1791
Codebases: 571