Lines Matching refs:str
43 char *str, *str2, *last;
45 str = strdup(instr);
46 if (str == NULL) {
52 str2 = strtok_r(str, sep, &last);
58 free(str);
93 atf_text_split(const char *str, const char *delim, atf_list_t *words)
103 end = str + strlen(str);
105 iter = str;
140 atf_text_to_bool(const char *str, bool *b)
144 if (strcasecmp(str, "yes") == 0 ||
145 strcasecmp(str, "true") == 0) {
148 } else if (strcasecmp(str, "no") == 0 ||
149 strcasecmp(str, "false") == 0) {
155 "to boolean", str);
162 atf_text_to_long(const char *str, long *l)
169 tmp = strtol(str, &endptr, 10);
170 if (str[0] == '\0' || *endptr != '\0')
171 err = atf_libc_error(EINVAL, "'%s' is not a number", str);
173 err = atf_libc_error(ERANGE, "'%s' is out of range", str);