Lines Matching refs:sptr
444 char *sptr, /* Pointer into string */
460 else if ((sptr = strchr(temps, '%')) != NULL)
466 *sptr = '+';
476 for (sptr = temps, i = 0; i < 4 && addr->ipv6.sin6_addr.s6_addr32[i]; i ++)
480 snprintf(sptr, sizeof(temps) - (sptr - temps), "%s%x", prefix,
483 sptr += strlen(sptr);
489 snprintf(sptr, sizeof(temps) - (sptr - temps), "%s%x", prefix, temp);
490 sptr += strlen(sptr);
501 snprintf(sptr, sizeof(temps) - (sptr - temps), "%s:", prefix);
503 sptr += strlen(sptr);
512 snprintf(sptr, sizeof(temps) - (sptr - temps), "%s%x", prefix,
514 sptr += strlen(sptr);
517 snprintf(sptr, sizeof(temps) - (sptr - temps), "%s%x", prefix,
519 sptr += strlen(sptr);
522 else if (sptr == s)
536 strlcpy(sptr, "::", sizeof(temps) - (sptr - temps));