]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/inet_pton.h
9f8a8c68ecfd97b1f7364ff7ca41d08925ff7a40
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef _INC_INET_PTON_H
10 #define _INC_INET_PTON_H
12 /* Use the system provided version where possible */
13 #if !HAVE_DECL_INET_PTON
16 * inet_pton(af, src, dst)
17 * convert from presentation format (which usually means ASCII printable)
18 * to network format (which is usually some kind of binary format).
20 * 1 if the address was valid for the specified address family
21 * 0 if the address wasn't valid (`dst' is untouched in this case)
22 * -1 if some other error occurred (`dst' is untouched in this case, too)
26 SQUIDCEXTERN
int xinet_pton(int af
, const char *src
, void *dst
);
28 #define inet_pton xinet_pton
31 #endif /* HAVE_DECL_INET_PTON */
32 #endif /* _INC_INET_NTOP_H */