IDENTEXPR(3)

NAME
identExpr - gives an ident from an operator expression.

SYNOPSYS
#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(3). charToOper(3), operToChar(3), displayExpr(3), displayInfExpr(3), exprToChar(3),