Lines Matching refs:cp
137 register char* cp = str;
140 if (!(cut = (Cut_t*)stakalloc(sizeof(Cut_t) + strlen(cp) * sizeof(int))))
162 switch(c = *cp++)
166 while(*cp==' ' || *cp=='\t')
167 cp++;
367 register unsigned char *cp;
383 cp = bp;
384 ep = cp + --c;
385 if((lastchar = cp[c]) != cut->eob)
388 while (cp <= ep)
390 first = cp;
394 copy = cp;
401 copy = cp;
409 switch (c = sp[*(unsigned char*)cp++])
414 wp = --cp;
415 while ((c = mb2wc(w, cp, ep - cp)) <= 0)
418 if ((ep - cp) < mbmax())
427 if ((c = mb2wc(w, cp, ep - cp)) > 0)
433 if ((c = cp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
436 for (i = 0; i <= (ep - cp); i++)
437 mb[i] = cp[i];
440 cp = bp;
441 ep = cp + --c;
442 if ((lastchar = cp[c]) != cut->eob)
447 mb[j++] = cp[k++];
453 first = bp = cp += c - i;
470 w = *cp;
475 cp += c;
489 wp = cp - 1;
496 while (!(c = sp[*cp++]));
497 wp = cp - 1;
502 if (cp <= ep)
526 copy = empty ? cp : wp;
550 if (copy && (c=cp-copy)>0 && (!nodelim || !cut->sflag) && sfwrite(fdout,(char*)copy,c)< 0)
554 if(inword && nodelim && !cut->sflag && (c=cp-first)>0)
571 register char* cp = 0;
598 cp = opt_info.arg;
640 cp = opt_info.arg;
669 if(!cp)
674 if(!*cp)
678 cut = cutinit(mode, cp, &wdelim, &ldelim, reclen);
679 if(cp = *argv)
683 if(!cp || streq(cp,"-"))
685 else if(!(fp = sfopen(NiL,cp,"r")))
687 error(ERROR_system(0),"%s: cannot open",cp);
696 } while(cp = *argv++);