Browse Source

implemented gethu

remotes/origin/userinput
TheUltimateOptimist 11 months ago
parent
commit
80aeacef8b
  1. 6
      src/userinput.c

6
src/userinput.c

@ -184,4 +184,10 @@ long long getlld(char *message, long long *min, long long *max) {
LD(min)
LD(max)
return getNumber(message, minld, maxld, NULL, NULL, LLONG_MIN, LLONG_MAX);
}
unsigned short gethu(char *message, unsigned short *min, unsigned short *max) {
LD(min)
LD(max)
return getNumber(message, minld, maxld, NULL, NULL, 0, USHRT_MAX);
}
Loading…
Cancel
Save