Home
last modified time | relevance | path

Searched refs:cpmax (Results 1 – 4 of 4) sorted by relevance

/titanic_50/usr/src/lib/libast/common/disc/
H A Dsfdcdos.c119 register char *cp = (char*)buff, *first, *cpmax; local
134 cpmax = cp+n-1;
139 dp->last = *cpmax;
150 else if(dp->last!='\n' || cpmax[-1]!='\r')
151 *cpmax = '\r';
156 if(cp > cpmax || *cp=='\n')
161 if((count = cpmax+1-cp) <=0)
163 *cpmax = dp->last;
198 if(cp==cpmax)
202 if(cp<=cpmax && *cp!='\n')
[all …]
/titanic_50/usr/src/lib/libshell/common/bltins/
H A Dread.c213 unsigned char *cpmax; in sh_readline() local
461 cpmax = cp + c; in sh_readline()
463 if(delim=='\n' && c>=2 && cpmax[-2]=='\r') in sh_readline()
464 cpmax--; in sh_readline()
466 if(*(cpmax-1) != delim) in sh_readline()
467 *(cpmax-1) = delim; in sh_readline()
478 if(cpmax[-1] == '\n') in sh_readline()
479 cpmax--; in sh_readline()
480 if(cpmax>cp) in sh_readline()
482 while((c=shp->ifstable[*--cpmax])==S_DELIM || c==S_SPACE); in sh_readline()
[all …]
H A Dprint.c938 register const char *cp = string, *cpmax; in fmtvecho() local
1007 cpmax = cp + 4; in fmtvecho()
1008 while(++cp<cpmax && *cp>='0' && *cp<='7') in fmtvecho()
/titanic_50/usr/src/lib/libcmd/common/
H A Djoin.c473 register char* cpmax; in outfield() local
481 cpmax = fp->fields[n].end + 1; in outfield()
521 size = cpmax - cp; in outfield()