Lines Matching refs:response
54 int response, num; in GetNumber() local
63 num = sscanf(line, "%d", &response); in GetNumber()
65 if ((response < low) || (response > high)) in GetNumber()
68 response = def; in GetNumber()
70 } while ((response < low) || (response > high)); in GetNumber()
73 response = low; in GetNumber()
75 return (response); in GetNumber()
80 char response; in GetYN() local
89 response = toupper(line[0]); in GetYN()
90 } while ((response != 'Y') && (response != 'N')); in GetYN()
91 return response; in GetYN()
104 uint64_t response; in GetSectorNum() local
112 response = IeeeToInt(line, sSize, low, high, def); in GetSectorNum()
113 } while ((response < low) || (response > high)); in GetSectorNum()
114 return response; in GetSectorNum()
135 uint64_t response = def, bytesPerUnit = 1, mult = 1, divide = 1; in IeeeToInt() local
160 inString >> response >> suffix; in IeeeToInt()
164 if ((inValue.length() == 0) || (response == 0)) { in IeeeToInt()
165 response = def; in IeeeToInt()
180 if (response > (UINT64_MAX / mult)) in IeeeToInt()
183 response *= mult; in IeeeToInt()
185 response /= divide; in IeeeToInt()
194 if (response > 0) in IeeeToInt()
195 response--; in IeeeToInt()
196 if (response > (UINT64_MAX - low)) in IeeeToInt()
199 response = response + low; in IeeeToInt()
201 if (response > (UINT64_MAX - def)) in IeeeToInt()
204 response = response + def; in IeeeToInt()
207 if (response > high) in IeeeToInt()
210 response = high - response; in IeeeToInt()
214 response = UINT64_C(0); in IeeeToInt()
216 return response; in IeeeToInt()