From 9e53ccfefd2433452fdfa2bbe2ece903c0afb790 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 22 May 2015 21:20:44 -0400 Subject: support ctrl-c --- src/globals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/globals.h') diff --git a/src/globals.h b/src/globals.h index b85ecc0..ee6790f 100644 --- a/src/globals.h +++ b/src/globals.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -110,6 +111,7 @@ void load_portfolio(struct player_t*, const char*); void print_history(struct stock_t*); void print_usage(int argc, char *argv[]); void print_version(void); +void sig_handler(int); int output(const char*, ...); void buy_handler(struct player_t*); -- cgit v1.1