Lines Matching refs:tp
118 char *tp, *ep;
158 tp = tmp;
160 for (i = 0; i < (IN6ADDRSZ / INT16SZ) && tp < ep; i++) {
165 if (tp + 1 >= ep)
167 *tp++ = ':';
173 if (tp + 1 >= ep)
175 *tp++ = ':';
180 if (!inet_ntop4(src+12, tp, (size_t)(ep - tp)))
182 tp += strlen(tp);
185 advance = snprintf(tp, ep - tp, "%x", words[i]);
186 if (advance <= 0 || advance >= ep - tp)
188 tp += advance;
192 if (tp + 1 >= ep)
194 *tp++ = ':';
196 if (tp + 1 >= ep)
198 *tp++ = '\0';
203 if ((size_t)(tp - tmp) > size) {