diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c index 63e847f..9484a5f 100644 --- a/main.c +++ b/main.c @@ -12,7 +12,6 @@ /* rpncalc: a simple reverse polish notation calculator */ int main() { - /* initialize state struct and its values */ state s; /* default input buffer is stdin */ @@ -27,6 +26,10 @@ int main() { s.stk = stack; s.command_count = 0; init_state(&s); + + + fprintf(s.defout,"welcome to rpncalc! type 'list' to see a list of commands, or 'quit' to leave.\n"); + /* start reading from defbuf */ char buf[BUF_SIZE]; |