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 | |
| 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')
| -rw-r--r-- | src/info.c | 6 | ||||
| -rw-r--r-- | src/main.c | 2 |
2 files changed, 5 insertions, 3 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); } @@ -41,8 +41,6 @@ int main(int argc, char *argv[]) #endif { "[Q]uit", "quit", quit_handler }, }; - print_handler(player); - printf("\n"); do_menu(player, commands, ARRAYLEN(commands), "What would you like to do? "); } |