_wall.c

untermud/CMD/_wall.c · 595 B

From the archive untermud-2.4-r22.tar.gz

Download the archive   « Back to the archive contents

/* configure all options BEFORE including system stuff. */
#include    "config.h"
#include    "mud.h"
#include    "vars.h"

/*
_wall. What d'you think?
*/

/* ARGSUSED */
int cmd__wall (int ac, char *av[], char *who, char *aswho)
{
  char *xx;
  int i;

  io_rstnxtwho ();
  while ((xx = io_nxtwho ((long) 0)) != (char *) 0) {
    say (xx, ut_name (who), " shouts, \"", (char *) 0);
    for (i = 1; i < ac; i++) {
      if (i == ac - 1)
        say (xx, av[i], (char *) 0);
      else
        say (xx, av[i], " ", (char *) 0);
    }
    say (xx, "\"\n", (char *) 0);
  }
  return (UERR_NONE);
}

Site Stats

Snippets: 1791
Codebases: 571