1 /*
2  * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 #ifndef _INC_INET_PTON_H
10 #define _INC_INET_PTON_H
11 
12 /* Use the system provided version where possible */
13 #if !HAVE_DECL_INET_PTON
14 
15 /* int
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).
19 * return:
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)
23 * author:
24 *      Paul Vixie, 1996.
25 */
26 SQUIDCEXTERN int xinet_pton(int af, const char *src, void *dst);
27 #ifndef inet_pton
28 #define inet_pton xinet_pton
29 #endif
30 
31 #endif /* HAVE_DECL_INET_PTON */
32 #endif /* _INC_INET_NTOP_H */
33 
34