Rev 3377 | Rev 3396 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3377 | Rev 3378 | ||
|---|---|---|---|
| Line 81... | Line 81... | ||
| 81 | } |
81 | } |
| 82 | 82 | ||
| 83 | int main(int argc, char *argv[]) |
83 | int main(int argc, char *argv[]) |
| 84 | { |
84 | { |
| 85 | int ret = 0; |
85 | int ret = 0; |
| 86 | int i = 0; |
- | |
| 87 | 86 | ||
| 88 | if (cli_init(&usr)) |
87 | if (cli_init(&usr)) |
| 89 | exit(EXIT_FAILURE); |
88 | exit(EXIT_FAILURE); |
| 90 | 89 | ||
| 91 | printf("Welcome to %s - %s\nType `help' at any time for usage information.\n", |
90 | printf("Welcome to %s - %s\nType `help' at any time for usage information.\n", |
| Line 95... | Line 94... | ||
| 95 | get_input(&usr); |
94 | get_input(&usr); |
| 96 | if (NULL != usr.line) { |
95 | if (NULL != usr.line) { |
| 97 | ret = tok_input(&usr); |
96 | ret = tok_input(&usr); |
| 98 | usr.lasterr = ret; |
97 | usr.lasterr = ret; |
| 99 | } |
98 | } |
| 100 | i++; |
- | |
| 101 | } |
99 | } |
| 102 | goto finit; |
100 | goto finit; |
| 103 | 101 | ||
| 104 | finit: |
102 | finit: |
| 105 | cli_finit(&usr); |
103 | cli_finit(&usr); |