b_err.c

umud/U/b_err.c · 341 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"

ub_err(who,aswho,ac,av,retnode)
char	*who;
char	*aswho;
int	ac;
Nod	*av[];
Nod	*retnode;
{
	retnode->rv.t = STR;
	if(av[0]->rv.t == VNULL || av[0]->rv.t == NUM)
		retnode->rv.cv = mud_errtxt(av[0]->rv.iv);
	else
		retnode->rv.cv = "not an error";
	return(UERR_NONE);
}

Site Stats

Snippets: 1791
Codebases: 571