Lines Matching refs:len

151 	int len;
160 len = 1; /* Trailing null byte */
163 len++;
180 len += esclen;
191 len = (int) strlen(s) + 3;
196 newstr = p = (char *) ecalloc(len, sizeof(char));
199 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote);
230 int len;
238 len = (int) (strlen(dirname) + strlen(filename) + 2);
239 pathname = (char *) calloc(len, sizeof(char));
242 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename);
431 int len;
435 len = (int) strlen(s) + 4;
436 fpat = (char *) ecalloc(len, sizeof(char));
438 SNPRINTF1(fpat, len, "%s*.*", s);
440 SNPRINTF1(fpat, len, "%s*", s);
444 int len = (int) strlen(s) + 2;
445 fpat = (char *) ecalloc(len, sizeof(char));
446 SNPRINTF1(fpat, len, "%s*", s);
534 int len;
543 len = 100;
544 buf = (char *) ecalloc(len, sizeof(char));
549 if (p - buf >= len-1)
555 len *= 2;
557 p = (char *) ecalloc(len, sizeof(char));
604 int len = (int) (strlen(shell) + strlen(esccmd) + 5);
605 scmd = (char *) ecalloc(len, sizeof(char));
606 SNPRINTF3(scmd, len, "%s %s %s", shell, shell_coption(), esccmd);
694 register int len;
708 len = 100;
709 gfilename = (char *) ecalloc(len, sizeof(char));
720 while (p - gfilename + n + 2 >= len)
726 len *= 2;
728 p = (char *) ecalloc(len, sizeof(char));
759 int len;
776 len = (int) (strlen(lessecho) + strlen(ofilename) + (7*strlen(metachars())) + 24);
777 cmd = (char *) ecalloc(len, sizeof(char));
778 SNPRINTF4(cmd, len, "%s -p0x%x -d0x%x -e%s ", lessecho, openquote, closequote, esc);
857 int len;
897 len = (int) (strlen(lessopen) + strlen(filename) + 2);
898 cmd = (char *) ecalloc(len, sizeof(char));
899 SNPRINTF1(cmd, len, lessopen, filename);
968 int len;
990 len = (int) (strlen(lessclose) + strlen(filename) + strlen(altfilename) + 2);
991 cmd = (char *) ecalloc(len, sizeof(char));
992 SNPRINTF2(cmd, len, lessclose, filename, altfilename);