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