Lines Matching refs:dst
35 char *dst, size_t size) __THROW;
48 inet_net_ntop (int af, const void *src, int bits, char *dst, size_t size) in inet_net_ntop() argument
52 return (inet_net_ntop_ipv4(src, bits, dst, size)); in inet_net_ntop()
73 inet_net_ntop_ipv4 (const u_char *src, int bits, char *dst, size_t size) in inet_net_ntop_ipv4() argument
75 char *odst = dst; in inet_net_ntop_ipv4()
87 *dst++ = '0'; in inet_net_ntop_ipv4()
89 *dst = '\0'; in inet_net_ntop_ipv4()
96 t = dst; in inet_net_ntop_ipv4()
97 dst += SPRINTF((dst, "%u", *src++)); in inet_net_ntop_ipv4()
99 *dst++ = '.'; in inet_net_ntop_ipv4()
100 *dst = '\0'; in inet_net_ntop_ipv4()
102 size -= (size_t)(dst - t); in inet_net_ntop_ipv4()
110 t = dst; in inet_net_ntop_ipv4()
111 if (dst != odst) in inet_net_ntop_ipv4()
112 *dst++ = '.'; in inet_net_ntop_ipv4()
114 dst += SPRINTF((dst, "%u", *src & m)); in inet_net_ntop_ipv4()
115 size -= (size_t)(dst - t); in inet_net_ntop_ipv4()
121 dst += SPRINTF((dst, "/%u", bits)); in inet_net_ntop_ipv4()