Searched defs:cols (Results 1 - 8 of 8) sorted by relevance

/ast/src/lib/libast/port/
H A Dastwinsize.c26 * return terminal rows and cols
72 astwinsize(int fd, register int* rows, register int* cols) argument
81 if (cols) *cols = ws.ws_col;
92 if (cols) *cols = ts.ts_cols;
103 if (cols) *cols = ws.bytesx;
113 if (cols) *cols
[all...]
/ast/src/lib/libcmd/
H A Dfold.c89 static void fold(Sfio_t *in, Sfio_t *out, register int width, const char *cont, size_t contsize, char *cols) argument
94 cols[0] = 0;
105 if(cols['\b']==0 && (n=sfvalue(in))<=width)
115 while((n=cols[*(unsigned char*)cp++])==0);
154 if(cols[' '])
177 char cols[1<<CHAR_BIT]; local
180 memset(cols, 0, sizeof(cols));
181 cols['\t'] = T_TAB;
182 cols['\
[all...]
/ast/src/lib/libast/disc/
H A Dsfdcmore.c45 int cols; /* max cols */ member in struct:__anon257
195 if (++more->col <= more->cols || s < e && *s == '\n')
298 * if rows==0 or cols==0 then they are deterimined from the tty
303 int sfdcmore(Sfio_t* f, const char* prompt, int rows, int cols) argument
305 int sfdcmore(f, prompt, rows, cols)
309 int cols;
332 if (!rows || !cols)
335 astwinsize(sffileno(sfstdin), &rows, &cols); local
339 if (!cols)
[all...]
/ast/src/cmd/pzip/
H A Dpcmp.c63 dif(unsigned char* f, size_t fsize, unsigned char* t, size_t tsize, size_t cols) argument
75 p = (unsigned char*)memcpy(t, f, cols);
76 sfwrite(dp, p, cols);
78 for (e = f + fsize; f < e; f += cols)
80 for (i = 0; i < cols; i++)
87 while (++i < cols)
109 size_t cols; local
128 cols = 100;
132 switch (optget(argv, "c#[cols]l#[compression-level]r#[rows]vT#[test-mask]"))
135 cols
[all...]
H A Dr2c.c46 Col_t* cols; member in struct:State_s
70 if ((col = state.cols) && sfstrtell(col->sp))
122 col = state.cols;
129 if (!state.cols)
130 state.cols = col;
/ast/src/cmd/ksh93/sh/
H A Dfault.c77 int rows=0, cols=0; local
79 astwinsize(2,&rows,&cols);
80 if(v = cols)
/ast/src/cmd/mailx/
H A Dcmd1.c311 register int cols; local
315 cols = 5;
316 rows = (cmds + cols - 1) / cols;
/ast/src/cmd/ksh93/edit/
H A Dedit.c516 int rows,cols; local
519 cols = (int)strtol(cp, (char**)0, 10)-1;
522 astwinsize(2,&rows,&cols);
523 if(--cols <0)
524 cols = DFLTWINDOW-1;
526 if(cols < MINWINDOW)
527 cols = MINWINDOW;
528 else if(cols > MAXWINDOW)
529 cols = MAXWINDOW;
530 return(cols);
[all...]

Completed in 44 milliseconds