Browse Source

refactoring: renamed getul to getlu

remotes/origin/userinput
TheUltimateOptimist 11 months ago
parent
commit
0e9044cce9
  1. 2
      src/userinput.c
  2. 2
      src/userinput.h

2
src/userinput.c

@ -199,7 +199,7 @@ unsigned int getu(char *message, unsigned int *min, unsigned int *max) {
return getNumber(message, minld, maxld, NULL, NULL, 0, UINT_MAX); return getNumber(message, minld, maxld, NULL, NULL, 0, UINT_MAX);
} }
unsigned long getul(char *message, unsigned long *min, unsigned long *max) {
unsigned long getlu(char *message, unsigned long *min, unsigned long *max) {
LD(min) LD(min)
LD(max) LD(max)
return getNumber(message, minld, maxld, NULL, NULL, 0, ULONG_MAX); return getNumber(message, minld, maxld, NULL, NULL, 0, ULONG_MAX);

2
src/userinput.h

@ -7,7 +7,7 @@ long getld(char *message, long *min, long *max);
long long getlld(char *message, long long *min, long 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 short gethu(char *message, unsigned short *min, unsigned short *max);
unsigned int getu(char *message, unsigned int *min, unsigned int *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 getlu(char *message, unsigned long *min, unsigned long *max);
unsigned long long getull(char *message, unsigned long long *min, unsigned long 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); double getlf(char *message, double *min, double *max, double *greaterThan, double *smallerThan);
#endif #endif
Loading…
Cancel
Save