Lines Matching refs:str
29 char str[1]; member
176 static void history_add(const char *str) in history_add() argument
181 if (str[0] == '\0') in history_add()
185 if (os_strcmp(str, h->str) == 0) { in history_add()
205 len = os_strlen(str); in history_add()
210 os_strlcpy(h->str, str, len + 1); in history_add()
218 cmdbuf_len = cmdbuf_pos = os_strlen(history_curr->str); in history_use()
219 os_memcpy(cmdbuf, history_curr->str, cmdbuf_len); in history_use()
305 if (filter_cb && filter_cb(edit_cb_ctx, h->str)) in history_write()
307 fprintf(f, "%s\n", h->str); in history_write()
320 printf("%s%s\n", h == history_curr ? "[C]" : "", h->str); in history_debug_dump()
376 static int filter_strings(char **c, char *str, size_t len) in filter_strings() argument
381 if (os_strncasecmp(c[j], str, len) == 0) { in filter_strings()
877 if (os_strstr(h->str, search_buf)) { in search_find()
879 return h->str; in search_find()