Lines Matching refs:len
1514 int len;
1542 if ((len = wctomb(pcurcmd, c)) <= 0) {
1544 len = 1;
1546 pcurcmd += len;
1563 if ((len = wctomb(pcurcmd, c)) <= 0) {
1565 len = 1;
1567 pcurcmd += len;
1833 int len;
1858 if ((len = wctomb(gp, c)) <= 0) {
1860 len = 1;
1862 gp += len;
2369 short len;
2376 if ((len = wctomb(p, c)) <= 0) {
2378 len = 1;
2380 while (len--) {
2392 if ((len = wcwidth(c)) <= 0)
2393 len = 0;
2394 if (col + len >= 72) {
2399 col += len;
2400 if ((len = wctomb(lp, c)) <= 0) {
2402 len = 1;
2404 lp += len;
2407 if ((len = wctomb(lp, c)) <= 0) {
2409 len = 1;
2411 lp += len;
2415 len = lp - line;
2416 write(1, line, len);
2427 int len;
2501 len = lp - line;
2502 (void) write(1, line, len);
2550 int len;
2598 if ((len = wctomb(gp, c)) <= 0) {
2600 len = 1;
2602 gp += len;
2615 if ((len = wctomb(gp, c)) <= 0) {
2617 len = 1;
2619 gp += len;
2819 int len;
2824 for (fsp = line; *fsp && *fsp != '\n'; fsp += len) {
2825 if ((len = mblen(fsp, MB_CUR_MAX)) <= 0)
2826 len = 1;