Browse Source

implemented getd

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

6
src/userinput.c

@ -167,3 +167,9 @@ short gethd(char *message, short *min, short *max) {
LD(max) LD(max)
return getNumber(message, minld, maxld, NULL, NULL, SHRT_MIN, SHRT_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