Lines Matching refs:dst
41 static int inet_pton4(const char *src, unsigned char *dst);
42 static int inet_pton6(const char *src, unsigned char *dst);
46 * lwres_net_pton(af, src, dst)
51 * 0 if the address wasn't valid (`dst' is untouched in this case)
52 * -1 if some other error occurred (`dst' is untouched in this case, too)
57 lwres_net_pton(int af, const char *src, void *dst) {
60 return (inet_pton4(src, dst));
62 return (inet_pton6(src, dst));
71 * inet_pton4(src, dst)
76 * does not touch `dst' unless it's returning 1.
81 inet_pton4(const char *src, unsigned char *dst) {
118 memmove(dst, tmp, NS_INADDRSZ);
123 * inet_pton6(src, dst)
128 * (1) does not touch `dst' unless it's returning 1.
136 inet_pton6(const char *src, unsigned char *dst) {
212 memmove(dst, tmp, NS_IN6ADDRSZ);