ack/util/cpp/ch7mon.c
1987-01-06 15:16:53 +00:00

20 lines
243 B
C

/* EVALUATION OF MONADIC OPERATORS */
#include "Lpars.h"
ch7mon(oper, pval)
register int *pval;
{
switch (oper) {
case '~':
*pval = ~(*pval);
break;
case '-':
*pval = -(*pval);
break;
case '!':
*pval = !(*pval);
break;
}
}