aboutsummaryrefslogtreecommitdiff
path: root/src/info.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-18 18:24:48 -0400
committerFranklin Wei <git@fwei.tk>2015-05-18 18:24:48 -0400
commit9b9697747aa55651680b196d4930203ef15d1c47 (patch)
tree240b197c06ab8564ab94bf418430e6e123905419 /src/info.c
parentfa815fa30036a2ddea063dce7e3ac1be2a373b4d (diff)
downloadmarket-sim-9b9697747aa55651680b196d4930203ef15d1c47.zip
market-sim-9b9697747aa55651680b196d4930203ef15d1c47.tar.gz
market-sim-9b9697747aa55651680b196d4930203ef15d1c47.tar.bz2
market-sim-9b9697747aa55651680b196d4930203ef15d1c47.tar.xz
some random stuff
Diffstat (limited to 'src/info.c')
-rw-r--r--src/info.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/info.c b/src/info.c
index 3f79736..e8d0102 100644
--- a/src/info.c
+++ b/src/info.c
@@ -17,6 +17,10 @@ void info_handler(struct player_t *player)
free(sym);
- printf("Transaction history:\n");
+ printf("Transaction history for '%s':\n", stock->symbol);
+ printf("================================================================================\n");
print_history(stock);
+ printf("================================================================================\n");
+
+ printf("Current price: $%llu.%02llu\n", stock->current_price.cents / 100, stock->current_price.cents % 100);
}