Lines Matching defs:src
42 static const char *inet_ntop4(const unsigned char *src, char *dst, size_t size);
43 static const char *inet_ntop6(const unsigned char *src, char *dst, size_t size);
46 * inet_ntop(af, src, dst, size)
58 const char *ares_inet_ntop(int af, const void *src, char *dst,
63 return (inet_ntop4(src, dst, (size_t)size));
65 return (inet_ntop6(src, dst, (size_t)size));
74 * inet_ntop4(src, dst, size)
84 static const char *inet_ntop4(const unsigned char *src, char *dst, size_t size)
89 if ((size_t)snprintf(tmp, sizeof(tmp), fmt, src[0], src[1], src[2], src[3]) >=
99 * inet_ntop6(src, dst, size)
104 static const char *inet_ntop6(const unsigned char *src, char *dst, size_t size)
126 * Find the longest run of 0x00's in src[] for :: shorthanding.
130 words[i / 2] |= (unsigned int)(src[i] << ((1 - (i % 2)) << 3));
181 if (!inet_ntop4(src + 12, tp, sizeof(tmp) - (size_t)(tp - tmp))) {
209 const char *ares_inet_ntop(int af, const void *src, char *dst,
213 return inet_ntop(af, src, dst, size);