Browse Source

implemented getd

remotes/origin/userinput
TheUltimateOptimist 11 months ago
parent
commit
2729c4b9d2
  1. 6
      src/userinput.c

6
src/userinput.c

@ -166,4 +166,10 @@ short gethd(char *message, short *min, short *max) {
LD(min)
LD(max)
return getNumber(message, minld, maxld, NULL, NULL, SHRT_MIN, SHRT_MAX);
}
int getd(char *message, int *min, int *max) {
LD(min)
LD(max)
return getNumber(message, minld, maxld, NULL, NULL, INT_MIN, INT_MAX);
}
Loading…
Cancel
Save