Lines Matching refs:str
47 char *str, *str2, *last;
49 str = strdup(instr);
50 if (str == NULL) {
56 str2 = strtok_r(str, sep, &last);
62 free(str);
97 atf_text_split(const char *str, const char *delim, atf_list_t *words)
107 end = str + strlen(str);
109 iter = str;
144 atf_text_to_bool(const char *str, bool *b)
148 if (strcasecmp(str, "yes") == 0 ||
149 strcasecmp(str, "true") == 0) {
152 } else if (strcasecmp(str, "no") == 0 ||
153 strcasecmp(str, "false") == 0) {
159 "to boolean", str);
166 atf_text_to_long(const char *str, long *l)
173 tmp = strtol(str, &endptr, 10);
174 if (str[0] == '\0' || *endptr != '\0')
175 err = atf_libc_error(EINVAL, "'%s' is not a number", str);
177 err = atf_libc_error(ERANGE, "'%s' is out of range", str);