From 28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Wed, 20 May 2015 20:34:02 -0400 Subject: some stuff --- src/info.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index e8d0102..bde4bf4 100644 --- a/src/info.c +++ b/src/info.c @@ -15,8 +15,16 @@ void info_handler(struct player_t *player) return; } + printf("Updating price data...\n"); + if(!get_stock_info(sym, &stock->current_price, &stock->fullname)) + { + printf("Failed to update prices.\n"); + return; + } + free(sym); + printf("Transaction history for '%s':\n", stock->symbol); printf("================================================================================\n"); print_history(stock); -- cgit v1.1