---
name: "lwres_inetntop"
section: "3"
platform: "linux"
package: "libbind-dev"
version: "1:9.11.5.P4+dfsg-5.1+deb10u7"
release: "Debian 10 (Buster)"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/lwres_inetntop"
---

# lwres\_inetntop(3)

lightweight resolver IP address presentation

## NAME

lwres\_net\_ntop - lightweight resolver IP address presentation

## SYNOPSIS

```
#include <lwres/net.h>
```

**const char \* lwres\_net\_ntop(int** *af***, const void \****src***, char \****dst***, size\_t** *size***);**

## DESCRIPTION

**lwres\_net\_ntop()** converts an IP address of protocol family *af* — IPv4 or IPv6 — at location *src* from network format to its conventional representation as a string. For IPv4 addresses, that string would be a dotted-decimal. An IPv6 address would be represented in colon notation as described in RFC1884.

The generated string is copied to *dst* provided *size* indicates it is long enough to store the ASCII representation of the address.

## RETURN VALUES

If successful, the function returns *dst*: a pointer to a string containing the presentation format of the address. **lwres\_net\_ntop()** returns **NULL** and sets the global variable **errno** to **EAFNOSUPPORT** if the protocol family given in *af* is not supported.

## SEE ALSO

**RFC1884**(), [**inet\_ntop**(3)](/inet_ntop/3.md), [**errno**(3)](/errno/3.md).

## AUTHOR

**Internet Systems Consortium, Inc.**

## COPYRIGHT

Copyright © 2000, 2001, 2004, 2005, 2007, 2014-2016, 2018, 2019 Internet Systems Consortium, Inc. ("ISC")\
