From ed71fb000f98137bec2c181997a219932b88b798 Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Sun, 28 Jan 2024 00:14:19 +0100 Subject: [PATCH] defined userinput.h --- src/userinput.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/userinput.h diff --git a/src/userinput.h b/src/userinput.h new file mode 100644 index 0000000..9339d55 --- /dev/null +++ b/src/userinput.h @@ -0,0 +1,13 @@ +#ifndef USERINPUT_H +#define USERINPUT_H +char *getstr(char *message, unsigned long *minLength, unsigned long *maxLength); +short gethd(char *message, short *min, short *max); +int getd(char *message, int *min, int *max); +long getld(char *message, long *min, long *max); +long long getlld(char *message, long long *min, long long *max); +unsigned short gethu(char *message, unsigned short *min, unsigned short *max); +unsigned int getu(char *message, unsigned int *min, unsigned int *max); +unsigned long getul(char *message, unsigned long *min, unsigned long *max); +unsigned long long getull(char *message, unsigned long long *min, unsigned long long *max); +double getlf(char *message, double *min, double *max, double *greaterThan, double *smallerThan); +#endif