Lines Matching refs:response
49 // (If def is outside of the low-high range, an explicit response
52 int response, num;
61 num = sscanf(line, "%d", &response);
62 if (num == 1) { // user provided a response
63 if ((response < low) || (response > high))
66 response = def;
68 } while ((response < low) || (response > high));
71 response = low;
73 return (response);
76 // Gets a Y/N response (and converts lowercase to uppercase)
78 char response;
87 response = toupper(line[0]);
88 } while ((response != 'Y') && (response != 'N'));
89 return response;
102 uint64_t response;
110 response = IeeeToInt(line, sSize, low, high, def);
111 } while ((response < low) || (response > high));
112 return response;
133 uint64_t response = def, bytesPerUnit = 1, mult = 1, divide = 1;
154 // Extract numeric response and, if present, suffix
158 inString >> response >> suffix;
161 // If no response, or if response == 0, use default (def)
162 if ((inValue.length() == 0) || (response == 0)) {
163 response = def;
176 // Adjust response based on multiplier and plus flag, if present
178 if (response > (UINT64_MAX / mult))
181 response *= mult;
183 response /= divide;
187 // Recompute response based on low part of range (if default == high
192 if (response > 0)
193 response--;
194 if (response > (UINT64_MAX - low))
197 response = response + low;
199 if (response > (UINT64_MAX - def))
202 response = response + def;
205 if (response > high)
208 response = high - response;
212 response = UINT64_C(0);
214 return response;