From 3a00cb92d137d4ba1b1be773c4abe277812c644c Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Sun, 28 Jan 2024 01:03:58 +0100 Subject: [PATCH] implemented getld --- src/userinput.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/userinput.c b/src/userinput.c index 20372f8..bff0250 100644 --- a/src/userinput.c +++ b/src/userinput.c @@ -172,4 +172,10 @@ int getd(char *message, int *min, int *max) { LD(min) LD(max) return getNumber(message, minld, maxld, NULL, NULL, INT_MIN, INT_MAX); +} + +long getld(char *message, long *min, long *max) { + LD(min) + LD(max) + return getNumber(message, minld, maxld, NULL, NULL, LONG_MIN, LONG_MAX); } \ No newline at end of file