From c0d50a53e2f33ec4406b81ea463373e910b32278 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Thu, 26 Mar 2015 15:05:03 -0400 Subject: [PATCH] Implement pause function --- src/util.c | 7 +++++++ src/util.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/util.c b/src/util.c index d49e369..fd15596 100644 --- a/src/util.c +++ b/src/util.c @@ -35,3 +35,10 @@ void time_printf(const char *fmt, ...) fflush(stdout); } + +void pause() +{ + printf("Prese [Enter] to continue..."); + fflush(stdout); + getchar(); +} \ No newline at end of file diff --git a/src/util.h b/src/util.h index 33ec45f..f0ca093 100644 --- a/src/util.h +++ b/src/util.h @@ -60,4 +60,6 @@ double get_current_time(void); double get_real_time(); +void pause(); + #endif