;_.c

skylib_fluffos_v3/mudlib/secure/cmds/creator/;_.c · 311 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/* ; command, trial out by Turrican for a commands daemon. */

#include <parser.h>

inherit COMMAND_BASE;

mixed cmd(string str) {
  mixed res;

  PARSER->init_expr(str);
  res = PARSER->expr();
  printf("Returns: %O\n", ((pointerp(res) && sizeof(res) == 1)?res[0]:res));
  PARSER->finish_expr();
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571