aboutsummaryrefslogtreecommitdiff
path: root/src/info.c
diff options
context:
space:
mode:
authorFranklin Wei <franklin@fwei.ml>2015-05-20 20:34:02 -0400
committerFranklin Wei <frankhwei536@gmail.com>2015-05-20 20:34:02 -0400
commit8c0dd858194540b0ea83e4600a16d3f1a5ea9cf6 (patch)
tree6d66040c89faf785b20c82c6edfbe5e0e68450e8 /src/info.c
parent84173a168d533db1d649c10c179c27e3d35c4530 (diff)
downloadmarket-sim-8c0dd858194540b0ea83e4600a16d3f1a5ea9cf6.zip
market-sim-8c0dd858194540b0ea83e4600a16d3f1a5ea9cf6.tar.gz
market-sim-8c0dd858194540b0ea83e4600a16d3f1a5ea9cf6.tar.bz2
market-sim-8c0dd858194540b0ea83e4600a16d3f1a5ea9cf6.tar.xz
some stuff
Diffstat (limited to 'src/info.c')
-rw-r--r--src/info.c8
1 files changed, 8 insertions, 0 deletions
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);