---
name: "dnet_ntoa"
section: "3"
platform: "linux"
package: "libdnet-dev"
version: "2.65+b1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dnet_ntoa"
---

# dnet\_ntoa(3)

DECnet address to ascii translation

## NAME

dnet\_ntoa - DECnet address to ascii translation

## SYNOPSIS

**#include \<netdnet/dn.h\>**\
 **#include \<netdnet/dnetdb.h\>**\

**char \*dnet\_ntoa (struct dn\_naddr \*addr)**

## DESCRIPTION

**dnet\_ntoa** Converts the binary DECnet address  **addr** into  **area.node** ascii notation (1.1, 63.4, etc).

## EXAMPLE

```
#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>
#include <sys/socket.h>
main(void)
{
    struct dn_naddr		binaddr;
    binaddr.a_len 	= 2;
    binaddr.a_addr[0] 	= 0x02;
    binaddr.a_addr[1] 	= 0x04;
    printf ("DECnet area.node is %s",dnet_ntoa(binaddr));
}
```

## SEE ALSO

[**dnet\_addr**(3)](/dnet_addr/3.md), [**dnet\_htoa**(3)](/dnet_htoa/3.md), [**dnet\_conn**(3)](/dnet_conn/3.md), [**getnodeadd**(3)](/getnodeadd/3.md), [**getnodebyname**(3)](/getnodebyname/3.md), [**getnodebyaddr**(3)](/getnodebyaddr/3.md), [**setnodeent**(3)](/setnodeent/3.md)
