Lines Matching refs:src
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)
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)
93 * 1 if `src' is a valid dotted quad, else 0.
100 inet_pton4(const char *src, unsigned char *dst)
110 while((ch = *src++) != '\0') {
145 * inet_pton6(src, dst)
148 * 1 if `src' is a valid [RFC1884 2.2] address, else 0.
158 inet_pton6(const char *src, unsigned char *dst)
171 if(*src == ':')
172 if(*++src != ':')
174 curtok = src;
177 while((ch = *src++) != '\0') {
192 curtok = src;