Lines Matching defs:bp
93 * Get an entry for terminal name in buffer bp,
98 otgetent(char *bp, char *name)
105 ret = _tgetent(bp, name);
112 if (strlen(bp) >= 1024)
120 _tgetent(char *bp, char *name)
129 tbuf = bp;
144 (void) strcpy(bp, cp);
160 cp = bp;
172 if (cp > bp && cp[-1] == '\\') {
178 if (cp >= bp + TBUFSIZE) {
287 tskip(char *bp)
290 while (*bp && *bp != ':')
291 bp++;
292 if (*bp == ':')
293 bp++;
294 return (bp);
309 char *bp = tbuf;
312 bp = tskip(bp);
313 if (*bp == 0)
315 if (*bp++ != id[0] || *bp == 0 || *bp++ != id[1])
317 if (*bp == '@')
319 if (*bp != '#')
321 bp++;
323 if (*bp == '0')
326 while (isdigit(*bp))
327 i *= base, i += *bp++ - '0';
341 char *bp = tbuf;
344 bp = tskip(bp);
345 if (!*bp)
347 if (*bp++ == id[0] && *bp != 0 && *bp++ == id[1]) {
348 if (!*bp || *bp == ':')
350 else if (*bp == '@')
367 char *bp = tbuf;
370 bp = tskip(bp);
371 if (!*bp)
373 if (*bp++ != id[0] || *bp == 0 || *bp++ != id[1])
375 if (*bp == '@')
377 if (*bp != '=')
379 bp++;
380 return (tdecode(bp, area));