Lines Matching defs:dst
29 static int inet_ntop4(const unsigned char *src, char *dst, size_t size);
30 static int inet_ntop6(const unsigned char *src, char *dst, size_t size);
31 static int inet_pton4(const char *src, unsigned char *dst);
32 static int inet_pton6(const char *src, unsigned char *dst);
35 int uv_inet_ntop(int af, const void* src, char* dst, size_t size) {
38 return (inet_ntop4(src, dst, size));
40 return (inet_ntop6(src, dst, size));
48 static int inet_ntop4(const unsigned char *src, char *dst, size_t size) {
57 uv__strscpy(dst, tmp, size);
62 static int inet_ntop6(const unsigned char *src, char *dst, size_t size) {
141 uv__strscpy(dst, tmp, size);
146 int uv_inet_pton(int af, const char* src, void* dst) {
147 if (src == NULL || dst == NULL)
152 return (inet_pton4(src, dst));
166 return inet_pton6(s, dst);
175 static int inet_pton4(const char *src, unsigned char *dst) {
209 memcpy(dst, tmp, sizeof(struct in_addr));
214 static int inet_pton6(const char *src, unsigned char *dst) {
296 memcpy(dst, tmp, sizeof tmp);