---
name: "firedns_ntoa4"
section: "3"
platform: "linux"
package: "libfiredns-dev"
version: "0.9.12+dfsg-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/firedns_ntoa4"
---

# firedns\_ntoa4(3)

convert a binary format IPv4 address to a dotted quad string

## NAME

firedns\_ntoa4 - convert a binary format IPv4 address to a dotted quad string

## SYNOPSIS

**#include \<firedns.h\>**\
 **-lfiredns**

**char \*firedns\_ntoa4(const struct in\_addr \****ip***)**\
 **char \*firedns\_ntoa4\_r(const struct in\_addr \****ip***)**\
 **char \*firedns\_ntoa4\_s(const struct in\_addr \****ip***, char \****result***)**

## DESCRIPTION

firedns\_ntoa4() takes an IPv4 address in binary format in *ip* and returns a *char \** of the IP in human-readable dotted quad format.

## RETURN VALUE

Returns a string containing the IP address in human-readable dotted quad format.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfiredns**(3)](/libfiredns/3.md)
