mon_name
mn = mon_name(monster);
mn = mon_name(monster);
const char *mon_name(const object *);
sprintf(msg, "wait, that's a %s!", mon_name(monster));
mon_name(monster));
sprintf(msg, "the gaze of the %s has confused you", mon_name(monster));
sprintf(buf, "the %s misses the %s", s, mon_name(monster));
sprintf(buf, "the %s hits the %s", s, mon_name(monster));
sprintf(buf, "the %s hits the %s", s, mon_name(monster));
static const char mon_name[][3] = {
else mn = mon_name[timeptr->tm_mon];
notify(arg->mon_name, arg->state);
my_mon.mon_id.mon_name = hp->name;
arg.mon_name = our_hostname;
if (!gethostbyname(arg->mon_id.mon_name))
syslog(LOG_ERR, "Invalid hostname to sm_mon: %s", arg->mon_id.mon_name);
else if ((hp = find_host(arg->mon_id.mon_name, TRUE)))
syslog(LOG_DEBUG, "un-monitor request for host %s", arg->mon_name);
if ((hp = find_host(arg->mon_name, FALSE)))
arg->my_id.my_name, arg->mon_name);
arg->mon_name, arg->state);
hp = find_host(arg->mon_name, FALSE);
syslog(LOG_ERR, "Unsolicited notification from host %s", arg->mon_name);
tx_arg.mon_name = arg->mon_name;
if (debug) syslog(LOG_DEBUG, "stat called for host %s", arg->mon_name);
if (gethostbyname(arg->mon_name)) res.res_stat = stat_succ;
syslog(LOG_ERR, "invalid hostname to sm_stat: %s", arg->mon_name);
syslog(LOG_DEBUG, "monitor request for host %s", arg->mon_id.mon_name);
mon.mon_id.mon_name = argv[1];
static const char mon_name[][3] = {
(int) (sizeof mon_name / sizeof mon_name[0]))
else mn = mon_name[timeptr->tm_mon];