Home | History | Annotate | Download | only in pax

Lines Matching refs:str

186 safe_print(const char *str, FILE *fp)
195 for (cp = str; *cp; cp++) {
200 (void)fputs(str, fp);
215 asc_u32(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 u32_asc(uintmax_t val, char *str, int len, int base)
271 * WARNING str is not '\0' terminated by this routine
273 pt = str + len - 1;
281 while (pt >= str) {
290 while (pt >= str) {
300 while (pt >= str)
316 asc_umax(char *str, int len, int base)
321 stop = str + len;
327 if (str < stop && (*str & 0x80)) {
331 if (*str & 0x40)
334 tval = *str++ & 0x3f;
335 while (str < stop) {
341 tval = (tval << 8) | ((*str++) & 0xFF);
350 while ((str < stop) && ((*str == ' ') || (*str == '0')))
351 ++str;
358 while (str < stop) {
359 if ((*str >= '0') && (*str <= '9'))
360 tval = (tval << 4) + (*str++ - '0');
361 else if ((*str >= 'A') && (*str <= 'F'))
362 tval = (tval << 4) + 10 + (*str++ - 'A');
363 else if ((*str >= 'a') && (*str <= 'f'))
364 tval = (tval << 4) + 10 + (*str++ - 'a');
369 while ((str < stop) && (*str >= '0') && (*str <= '7'))
370 tval = (tval << 3) + (*str++ - '0');
383 umax_asc(uintmax_t val, char *str, int len, int base)
389 * WARNING str is not '\0' terminated by this routine
391 pt = str + len - 1;
399 while (pt >= str) {
408 while (pt >= str) {
418 while (pt >= str)