]> git.ipfire.org Git - thirdparty/squid.git/blame - compat/inet_ntop.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / compat / inet_ntop.h
CommitLineData
37be9888 1/*
b8ae064d 2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
37be9888
AJ
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
27bc2077
AJ
9#ifndef _INC_INET_NTOP_H
10#define _INC_INET_NTOP_H
0e076fb1 11
12/* Use the system provided version where possible */
55d7d5e9 13#if !HAVE_DECL_INET_NTOP
0e076fb1 14
15/* char *
c5dd4956
AJ
16* inet_ntop(af, src, dst, size)
17* convert a network format address to presentation format.
18* return:
19* pointer to presentation format address (`dst'), or NULL (see errno).
20* author:
21* Paul Vixie, 1996.
22*/
0e076fb1 23SQUIDCEXTERN const char * xinet_ntop(int af, const void *src, char *dst, size_t size);
4dbe7028 24#ifndef inet_ntop
27bc2077 25#define inet_ntop xinet_ntop
4dbe7028 26#endif
0e076fb1 27
55d7d5e9 28#endif /* HAVE_DECL_INET_NTOP */
0e076fb1 29#endif /* _INC_INET_NTOP_H */
f53969cc 30