b_cmd.c

umud/U/b_cmd.c · 378 B

From the archive umud2.0.tar.gz

Download the archive   « Back to the archive contents

#include	"config.h"
#include	"mud.h"
#include	"u.h"
#include	"y.tab.h"

/* call a string as a macro */
ub_cmd(who,aswho,ac,av,retnode)
char	*who;
char	*aswho;
int	ac;
Nod	*av[];
Nod	*retnode;
{
	retnode->rv.iv = run(who,aswho,eval_caststr(av[0]),0,0,0);
	if(retnode->rv.iv != UERR_NONE)
		return(retnode->rv.iv);
	retnode->rv.t = NUM;
	retnode->rv.iv = 0;
	return(UERR_NONE);
}

Site Stats

Snippets: 1791
Codebases: 571