Lines Matching refs:dst
34 static int inet_ntop4(const unsigned char *src, char *dst, size_t size);
35 static int inet_ntop6(const unsigned char *src, char *dst, size_t size);
36 static int inet_pton4(const char *src, unsigned char *dst);
37 static int inet_pton6(const char *src, unsigned char *dst);
40 int uv_inet_ntop(int af, const void* src, char* dst, size_t size) {
43 return (inet_ntop4(src, dst, size));
45 return (inet_ntop6(src, dst, size));
53 static int inet_ntop4(const unsigned char *src, char *dst, size_t size) {
62 uv__strscpy(dst, tmp, size);
67 static int inet_ntop6(const unsigned char *src, char *dst, size_t size) {
146 uv__strscpy(dst, tmp, size);
151 int uv_inet_pton(int af, const char* src, void* dst) {
152 if (src == NULL || dst == NULL)
157 return (inet_pton4(src, dst));
171 return inet_pton6(s, dst);
180 static int inet_pton4(const char *src, unsigned char *dst) {
214 memcpy(dst, tmp, sizeof(struct in_addr));
219 static int inet_pton6(const char *src, unsigned char *dst) {
301 memcpy(dst, tmp, sizeof tmp);