| 40 | */ |
| 41 | |
| 42 | static void usage(void) |
| 43 | { |
| 44 | printf("Simple expression evaluator, please *don't* turn me to a feature-complete language interpreter\n"); |
| 45 | printf("usage: ffeval [OPTIONS]\n"); |
| 46 | printf("\n" |
| 47 | "Options:\n" |
| 48 | "-e echo each input line on output\n" |
| 49 | "-h print this help\n" |
| 50 | "-i INFILE set INFILE as input file, stdin if omitted\n" |
| 51 | "-o OUTFILE set OUTFILE as output file, stdout if omitted\n" |
| 52 | "-p PROMPT set output prompt\n"); |
| 53 | } |
| 54 | |
| 55 | int main(int argc, char **argv) |
| 56 | { |