Lines Matching refs:len

800     int		len = 0;  in get_keystroke()  local
814 maxlen = (buflen - 6 - len) / 3; in get_keystroke()
827 maxlen = (buflen - 6 - len) / 3; in get_keystroke()
837 n = ui_inchar(buf + len, maxlen, len == 0 ? -1L : 100L, 0); in get_keystroke()
841 n = fix_input_buffer(buf + len, n); in get_keystroke()
842 len += n; in get_keystroke()
845 else if (len > 0) in get_keystroke()
849 if ((n = check_termcode(1, buf, buflen, &len)) < 0 in get_keystroke()
864 len = n; in get_keystroke()
865 if (len == 0) // nothing typed yet in get_keystroke()
884 len -= 3; in get_keystroke()
885 if (len > 0) in get_keystroke()
886 mch_memmove(buf, buf + 3, (size_t)len); in get_keystroke()
893 if (MB_BYTE2LEN(n) > len) in get_keystroke()
895 buf[len >= buflen ? buflen - 1 : len] = NUL; in get_keystroke()
1230 int len; in init_homedir() local
1235 acp_to_enc(var, (int)STRLEN(var), &pp, &len); in init_homedir()
1355 size_t len; in expand_env_esc() local
1362 len = src - var; in expand_env_esc()
1363 if (len > (size_t)dstlen) in expand_env_esc()
1364 len = dstlen; in expand_env_esc()
1365 vim_strncpy(dst, var, len); in expand_env_esc()
1366 dst += len; in expand_env_esc()
1367 dstlen -= (int)len; in expand_env_esc()
1617 int len = (int)STRLEN(name) + 1; in remove_tail() local
1618 char_u *newend = pend - len; in remove_tail()
1621 && fnamencmp(newend, name, len - 1) == 0 in remove_tail()
2272 int len; in get_cmd_output() local
2318 len = ftell(fd); // get size of temp file in get_cmd_output()
2321 buffer = alloc(len + 1); in get_cmd_output()
2323 i = (int)fread((char *)buffer, (size_t)1, (size_t)len, fd); in get_cmd_output()
2329 len = i; // VMS doesn't give us what we asked for... in get_cmd_output()
2331 if (i != len) in get_cmd_output()
2339 for (i = 0; i < len; ++i) in get_cmd_output()
2343 buffer[len] = NUL; // make sure the buffer is terminated in get_cmd_output()
2346 *ret_len = len; in get_cmd_output()
2432 size_t len; in get_cmd_output_as_rettv() local
2441 len = STRLEN(p); in get_cmd_output_as_rettv()
2442 if (len > 0 && fwrite(p, len, 1, fd) != 1) in get_cmd_output_as_rettv()
2461 int len; in get_cmd_output_as_rettv() local
2468 res = get_cmd_output(tv_get_string(&argvars[0]), infile, flags, &len); in get_cmd_output_as_rettv()
2476 for (i = 0; i < len; ++i) in get_cmd_output_as_rettv()
2479 while (i < len && res[i] != NL) in get_cmd_output_as_rettv()