Lines Matching refs:strp
123 tarfs_str2octal(const char *strp, size_t len, int64_t *num) in tarfs_str2octal() argument
130 if (strp[idx] == '-') { in tarfs_str2octal()
138 for (; idx < len && strp[idx] != '\0' && strp[idx] != ' '; idx++) { in tarfs_str2octal()
139 if (strp[idx] < '0' || strp[idx] > '7') in tarfs_str2octal()
142 val += strp[idx] - '0'; in tarfs_str2octal()
158 tarfs_str2base256(const char *strp, size_t len, int64_t *num) in tarfs_str2base256() argument
163 KASSERT(strp[0] & 0x80, ("not an extended numeric value")); in tarfs_str2base256()
166 if ((strp[0] & 0x40) != 0) in tarfs_str2base256()
171 val |= (strp[0] & 0x3f); in tarfs_str2base256()
176 val |= (0xff & (int64_t)strp[idx]); in tarfs_str2base256()
191 tarfs_str2int64(const char *strp, size_t len, int64_t *num) in tarfs_str2int64() argument
195 if ((strp[0] & 0x80) != 0) in tarfs_str2int64()
196 return (tarfs_str2base256(strp, len, num)); in tarfs_str2int64()
197 return (tarfs_str2octal(strp, len, num)); in tarfs_str2int64()