texk/ps2pk/strexpr.h
raw| 1 | /* |
| 2 | * File: strexpr.h |
| 3 | * Purpose: calculate value from algebraic string expression |
| 4 | * Version: 1.0 (Nov 1995) |
| 5 | * Author: Piet Tutelaers |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * Evaluate the algebraic expression contained in <expression>. The |
| 10 | * value will be assigned to <result>. When errors are encountered |
| 11 | * non-zero (if program is not aborted) is returned otherwise zero. |
| 12 | */ |
| 13 | int strexpr(int *result, char *expression); |