Lines Matching refs:cp

90  * characters through position cp of the
94 column(unsigned char *cp)
97 if (cp == 0)
98 cp = &linebuf[LBSIZE - 2];
99 return (qcolumn(cp, (unsigned char *)0));
104 * cp of the current line
107 lcolumn(unsigned char *cp)
110 if (cp == 0)
111 cp = &linebuf[LBSIZE - 2];
112 return (nqcolumn(lastchr(linebuf, cp), (unsigned char *)0));
180 unsigned char *cp;
183 cp = vpastwh(genbuf);
184 if (*cp == 0 && i == indent && linebuf[0] == 0) {
188 CP(genindent(i), cp);
193 filioerr(unsigned char *cp)
197 lprintf("\"%s\"", cp);
206 unsigned char *cp;
208 for (cp = genbuf; indent >= value(vi_TABSTOP); indent -= value(vi_TABSTOP))
209 *cp++ = '\t';
211 *cp++ = ' ';
212 return (cp);
367 unsigned char *cp;
371 /* for (cp = str; *cp; cp++)
372 switch (*cp) {
376 *cp = 0;
378 *cp = ' ';
383 return (cp + 1);
384 *cp = 0;
394 unsigned char *cp = linebuf;
399 if (*cp == '\n')
400 putnl(), cp++;
406 viprintf(mesg(cp), i);
408 viprintf((char *)mesg(cp), i);
484 unsigned char *cp;
487 notesgn = cp = (unsigned char *)"more ";
489 notesgn = cp = (unsigned char *)"fewer ", i = -i;
497 if (*cp == 'm') /* for ease of messge localization */
772 smerror(unsigned char *seekpt, unsigned char *cp)
781 lprintf(mesg(linebuf), cp);
787 strend(cp)
788 unsigned char *cp;
791 while (*cp)
792 cp++;
793 return (cp);
849 unsigned char *cp, *oldcp;
857 for (cp = linebuf; *cp && vcntcol < i; ) {
858 oldcp = cp;
859 length = mbtowc(&wchar, (char *)cp, MULTI_BYTE_MAX);
862 putchar(*cp++);
866 cp += length;
869 if (cp != linebuf)
870 cp = oldcp;
872 return (cp);
876 vskipwh(cp)
877 unsigned char *cp;
880 while (iswhite(*cp) && cp[1])
881 cp++;
882 return (cp);
887 vpastwh(cp)
888 unsigned char *cp;
891 while (iswhite(*cp))
892 cp++;
893 return (cp);
897 whitecnt(unsigned char *cp)
903 switch (*cp++) {