Lines Matching refs:result
120 * @result: resulting integer on success
124 * as a number in that base. On success, sets @result to the integer represented
127 static int match_number(substring_t *s, int *result, int base)
145 *result = (int) val;
153 * @result: resulting u64 on success
157 * as a number in that base. On success, sets @result to the integer represented
160 static int match_u64int(substring_t *s, u64 *result, int base)
172 *result = val;
180 * @result: resulting integer on success
183 * success, sets @result to the integer represented by the string and returns 0.
186 int match_int(substring_t *s, int *result)
188 return match_number(s, result, 0);
196 * @result: resulting unsigned long long on success
199 * integer. On success, sets @result to the integer represented by the
203 int match_u64(substring_t *s, u64 *result)
205 return match_u64int(s, result, 0);
212 * @result: resulting integer on success
215 * success, sets @result to the integer represented by the string and returns
218 int match_octal(substring_t *s, int *result)
220 return match_number(s, result, 8);
227 * @result: resulting integer on success
230 * On success, sets @result to the integer represented by the string and
233 int match_hex(substring_t *s, int *result)
235 return match_number(s, result, 16);