/
umud/DOC/
umud/DOC/U/
umud/DOC/U/U-examples/
umud/DOC/internals/
umud/DOC/wizard/
umud/MISC/
umud/MISC/dbchk/
umud/RWHO/rwhod/
#ifndef	lint
static	char RCSid[] = "$Header: /home/mjr/hacks/umud/CMD/RCS/examine.c,v 1.1 92/02/09 22:59:28 mjr Exp $";
#endif

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


#include	"mud.h"
#include	"match.h"
#include	"vars.h"
#include	"look.h"

/*
TinyMUD-like "examine"
*/

/* ARGSUSED */

cmd_examine(argc,argv,who,aswho)
int	argc;
char	*argv[];
char	*who;
char	*aswho;
{
	char *loc = ut_loc(who);

	if(argc > 1) {
		int	x;
		char	ob[MAXOID];

		for(x = 1; x < argc; x++) {
			if(matchlocal(who,argv[x],loc,MTCH_UNIQ|MTCH_MEOK|MTCH_NONLOC|MTCH_QUIET,ob) 
					&& matchlocal(who,argv[x],loc,MTCH_FRST,ob))
				continue;
			do_examine(who,aswho,ob);
		}
		return(UERR_NONE);
	} else {
		do_examine(who,aswho,loc);
		return(UERR_NONE);
	}
}