Lines Matching defs:dst
55 static int inet_pton4(const char *src, unsigned char *dst);
56 static int inet_pton6(const char *src, unsigned char *dst);
59 * inet_pton(af, src, dst)
64 * 0 if the address wasn't valid (`dst' is untouched in this case)
65 * -1 if some other error occurred (`dst' is untouched in this case, too)
75 Curl_inet_pton(int af, const char *src, void *dst)
79 return (inet_pton4(src, (unsigned char *)dst));
81 return (inet_pton6(src, (unsigned char *)dst));
90 * inet_pton4(src, dst)
95 * does not touch `dst' unless it's returning 1.
100 inet_pton4(const char *src, unsigned char *dst)
140 memcpy(dst, tmp, INADDRSZ);
145 * inet_pton6(src, dst)
150 * (1) does not touch `dst' unless it's returning 1.
158 inet_pton6(const char *src, unsigned char *dst)
239 memcpy(dst, tmp, IN6ADDRSZ);