Lines Matching refs:lp
482 tok2strbuf(register const struct tok *lp, register const char *fmt, in tok2strbuf() argument
485 if (lp != NULL) { in tok2strbuf()
486 while (lp->s != NULL) { in tok2strbuf()
487 if (lp->v == v) in tok2strbuf()
488 return (lp->s); in tok2strbuf()
489 ++lp; in tok2strbuf()
503 tok2str(register const struct tok *lp, register const char *fmt, in tok2str() argument
512 return tok2strbuf(lp, fmt, v, ret, sizeof(buf[0])); in tok2str()
521 bittok2str_internal(register const struct tok *lp, register const char *fmt, in bittok2str_internal() argument
531 while (lp != NULL && lp->s != NULL) { in bittok2str_internal()
532 tokval=lp->v; /* load our first value */ in bittok2str_internal()
550 string_size = strlcpy(bufp, lp->s, space_left); in bittok2str_internal()
560 lp++; in bittok2str_internal()
574 bittok2str_nosep(register const struct tok *lp, register const char *fmt, in bittok2str_nosep() argument
577 return (bittok2str_internal(lp, fmt, v, "")); in bittok2str_nosep()
585 bittok2str(register const struct tok *lp, register const char *fmt, in bittok2str() argument
588 return (bittok2str_internal(lp, fmt, v, ", ")); in bittok2str()
598 tok2strary_internal(register const char **lp, int n, register const char *fmt, in tok2strary_internal() argument
603 if (v >= 0 && v < n && lp[v] != NULL) in tok2strary_internal()
604 return lp[v]; in tok2strary_internal()