Lines Matching refs:str
215 asc_ul(char *str, int len, int base)
220 stop = str + len;
225 while ((str < stop) && ((*str == ' ') || (*str == '0')))
226 ++str;
233 while (str < stop) {
234 if ((*str >= '0') && (*str <= '9'))
235 tval = (tval << 4) + (*str++ - '0');
236 else if ((*str >= 'A') && (*str <= 'F'))
237 tval = (tval << 4) + 10 + (*str++ - 'A');
238 else if ((*str >= 'a') && (*str <= 'f'))
239 tval = (tval << 4) + 10 + (*str++ - 'a');
244 while ((str < stop) && (*str >= '0') && (*str <= '7'))
245 tval = (tval << 3) + (*str++ - '0');
258 ul_asc(u_long val, char *str, int len, int base)
264 * WARNING str is not '\0' terminated by this routine
266 pt = str + len - 1;
274 while (pt >= str) {
283 while (pt >= str) {
293 while (pt >= str)
312 asc_uqd(char *str, int len, int base)
317 stop = str + len;
322 while ((str < stop) && ((*str == ' ') || (*str == '0')))
323 ++str;
330 while (str < stop) {
331 if ((*str >= '0') && (*str <= '9'))
332 tval = (tval << 4) + (*str++ - '0');
333 else if ((*str >= 'A') && (*str <= 'F'))
334 tval = (tval << 4) + 10 + (*str++ - 'A');
335 else if ((*str >= 'a') && (*str <= 'f'))
336 tval = (tval << 4) + 10 + (*str++ - 'a');
341 while ((str < stop) && (*str >= '0') && (*str <= '7'))
342 tval = (tval << 3) + (*str++ - '0');
355 uqd_asc(u_quad_t val, char *str, int len, int base)
361 * WARNING str is not '\0' terminated by this routine
363 pt = str + len - 1;
371 while (pt >= str) {
380 while (pt >= str) {
390 while (pt >= str)