identExpr(2)

ORIGIN
Cao-vlsi libraries, log package, libablmmm.a

NAME
identExpr - gives an ident from an operator expression.

SYNOPSIS
#include "logmmm.h"
char *identExpr(expr)
chain_list *expr;

PARAMETER

expr
    expression from wich the identifier will be extracted

DESCRIPTION
identExpr() returns the char * identifier associated to expr. If you want to obtain a quasi-unique identifier, this function must be called after the normExpr() function.

EXAMPLE
#include "mutnnn.h"		/* mbk utilities */
#include "logmmm.h"
chain_list *expr1,*expr2;
expr1 = createExpr(OR)
addQExpr(expr1,createAtom("a"));
addQExpr(expr1,createAtom("b"));
addQExpr(expr1,createAtom("c"));
printf("%s",identExpr(expr));
/* it will display
or3
*/
expr2 = createExpr(XOR);
addQExpr(expr2,createAtom("a"));
addQExpr(expr2,createAtom("b"));
addQExpr(expr1,expr2);
printf("%s",identExpr(expr));
/* it will display
ox24
*/
freeExpr(expr1);		/* don't free expr2 ! */

SEE ALSO
log(1), abl(1), normExpr(2). charToOper(2), operToChar(2), displayExpr(2), displayInfExpr(2), exprToChar(2),

SUPPORT STATUS
if bugs arise, please e-mail to cao-vlsi@masi.ibp.fr