|
|
@ -62,7 +62,7 @@ char *readInput() { |
|
|
|
return buffer; |
|
|
|
} |
|
|
|
|
|
|
|
char *getstr(char *message, unsigned long *minLength, unsigned long *maxLength) { |
|
|
|
char *gets(char *message, unsigned long *minLength, unsigned long *maxLength) { |
|
|
|
printf("%s", message); |
|
|
|
fflush(stdout); |
|
|
|
char *result = readInput(); |
|
|
@ -95,7 +95,7 @@ void printlf(long double value) { |
|
|
|
|
|
|
|
long double getNumber(char *message, long double *min, long double *max, long double *greaterThan, long double *smallerThan, long double leftBorder, long double rightBorder) { |
|
|
|
while (1) { |
|
|
|
char *input = getstr(message, NULL, NULL); |
|
|
|
char *input = gets(message, NULL, NULL); |
|
|
|
if (strlen(input) == 0) { |
|
|
|
printf("%s\n", "Fehlende Eingabe!"); |
|
|
|
fflush(stdout); |
|
|
|