aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/info.c6
-rw-r--r--src/main.c2
2 files changed, 5 insertions, 3 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);
}
diff --git a/src/main.c b/src/main.c
index bb703b5..7850bcf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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? ");
}