From 159fe0a0179f984f110cd5e2857fb9743771b789 Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Sun, 28 Jan 2024 01:05:20 +0100 Subject: [PATCH] implemented getul --- src/userinput.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/userinput.c b/src/userinput.c index 7f8f890..35827f1 100644 --- a/src/userinput.c +++ b/src/userinput.c @@ -196,4 +196,10 @@ unsigned int getu(char *message, unsigned int *min, unsigned int *max) { LD(min) LD(max) return getNumber(message, minld, maxld, NULL, NULL, 0, UINT_MAX); +} + +unsigned long getul(char *message, unsigned long *min, unsigned long *max) { + LD(min) + LD(max) + return getNumber(message, minld, maxld, NULL, NULL, 0, ULONG_MAX); } \ No newline at end of file