Simple expression evaluation in C