From 2729c4b9d2e27fdcbffffd4361bfe800c6dc1a6e Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Sun, 28 Jan 2024 01:03:39 +0100 Subject: [PATCH] implemented getd --- src/userinput.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/userinput.c b/src/userinput.c index 24946dc..20372f8 100644 --- a/src/userinput.c +++ b/src/userinput.c @@ -166,4 +166,10 @@ short gethd(char *message, short *min, short *max) { LD(min) LD(max) return getNumber(message, minld, maxld, NULL, NULL, SHRT_MIN, SHRT_MAX); +} + +int getd(char *message, int *min, int *max) { + LD(min) + LD(max) + return getNumber(message, minld, maxld, NULL, NULL, INT_MIN, INT_MAX); } \ No newline at end of file