diff options
| author | Franklin Wei <git@fwei.tk> | 2015-05-20 20:34:02 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-05-20 20:34:02 -0400 |
| commit | 28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30 (patch) | |
| tree | 6d66040c89faf785b20c82c6edfbe5e0e68450e8 /src/info.c | |
| parent | 617b7ca872037b90cf5a758f7a10fcf3a5840616 (diff) | |
| download | market-sim-28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30.zip market-sim-28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30.tar.gz market-sim-28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30.tar.bz2 market-sim-28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30.tar.xz | |
some stuff
Diffstat (limited to 'src/info.c')
| -rw-r--r-- | src/info.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |