diff options
| author | Franklin Wei <git@fwei.tk> | 2015-05-18 18:24:48 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-05-18 18:24:48 -0400 |
| commit | 9b9697747aa55651680b196d4930203ef15d1c47 (patch) | |
| tree | 240b197c06ab8564ab94bf418430e6e123905419 /src/info.c | |
| parent | fa815fa30036a2ddea063dce7e3ac1be2a373b4d (diff) | |
| download | market-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |