20 while((type
= getop(s
)) != EOF
)
42 printf("error: zero divisor\n");
45 printf("\t%.8g\n", pop());
48 printf("error: unknown command %s\n", s
);
62 /* push f onto value stack */
68 printf("error: stack full\n");
72 /* pop and return top value from stack */
79 printf("error: stack empty\n");
89 /* get next operator or numberic operand */
94 while ((s
[0] = c
= getch()) == ' ' || c
== '\t')
97 if(!isdigit(c
) && c
!= '.')
101 while(isdigit(s
[++i
] = c
= getch()))
104 while(isdigit(s
[++i
] = c
= getch()))
117 return (bufp
> 0) ? buf
[--bufp
] : getchar();
124 printf("ungetch: toomany characters\n");