---
name: "firedns_aton4"
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_aton4"
---

# firedns\_aton4(3)

convert a dotted quad IPv4 address to binary format

## NAME

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

## SYNOPSIS

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

**struct in\_addr \*firedns\_aton4(const char \* const** *ipstring***)**\
 **struct in\_addr \*firedns\_aton4\_r(const char \* const** *ipstring***)**\
 **struct in\_addr \*firedns\_aton4\_s(const char \* const** *ipstring***, struct in\_addr \****ip***)**

## DESCRIPTION

firedns\_aton4() takes an IPv4 address in dotted quad notation in *ipstring* and returns a *struct in\_addr* containing the address in binary format.

## RETURN VALUE

Returns a *struct in\_addr* containing the IP address in binary form, or *NULL* if *ipstring* is not a valid IP.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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