Home | History | Annotate | Download | only in inet

Lines Matching full:size

34 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
35 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
38 * inet_ntop(af, src, dst, size)
46 inet_ntop(int af, const void *src, char *dst, size_t size)
50 return (inet_ntop4(src, dst, size));
52 return (inet_ntop6(src, dst, size));
61 * inet_ntop4(src, dst, size)
72 inet_ntop4(const u_char *src, char *dst, size_t size)
78 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]);
79 if (l <= 0 || (size_t)l >= size) {
83 strlcpy(dst, tmp, size);
88 * inet_ntop6(src, dst, size)
94 inet_ntop6(const u_char *src, char *dst, size_t size)
98 * to contain a value of the specified size. On some systems, like
191 if ((size_t)(tp - tmp) > size) {
195 strlcpy(dst, tmp, size);