dnet_ntoa(3)

dnet_ntoa3

Decnet address to ascii translation

Usage

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

char *dnet_ntoa (struct dn_naddr *addr)

Overview

dnet_ntoa Converts the binary DECnet address addr into area.node ascii notation (1.1, 63.4, etc).

Examples

#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));
}

Releases

Unchanged in 9 releases since Debian 3.0 (Woody).

  1. 3.0–10

From libdnet-dev 2.65+b1 in Debian 10 (Buster). Parsed by carta from the page's man source.