Lines Matching refs:len
179 size_t len, count = 0;
205 len = os_strlen(str);
206 h = os_zalloc(sizeof(*h) + len);
210 os_strlcpy(h->str, str, len + 1);
376 static int filter_strings(char **c, char *str, size_t len)
381 if (os_strncasecmp(c[j], str, len) == 0) {
399 int len = 0;
400 while (a[len] && a[len] == b[len])
401 len++;
402 return len;
408 int len, i;
410 len = os_strlen(c[0]);
413 if (same < len)
414 len = same;
417 return len;
429 int i, len, count;
453 len = max_common_length(c);
454 if (len <= plen && count > 1) {
467 len -= plen;
470 if (room < len)
471 len = room;
472 add_space = count == 1 && len < room;
474 os_memmove(cmdbuf + cmdbuf_pos + len + add_space, cmdbuf + cmdbuf_pos,
476 os_memcpy(&cmdbuf[cmdbuf_pos - plen], c[0], plen + len);
478 cmdbuf[cmdbuf_pos + len] = ' ';
480 cmdbuf_pos += len + add_space;
481 cmdbuf_len += len + add_space;
870 size_t len = os_strlen(search_buf);
873 if (len == 0)
939 size_t len;
940 len = os_strlen(search_buf);
941 if (len == 0)
943 search_buf[len - 1] = '\0';
959 size_t len;
960 len = os_strlen(search_buf);
961 if (len == sizeof(search_buf) - 1)
963 search_buf[len] = c;
964 search_buf[len + 1] = '\0';