Decnet address to ascii translation
#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>
char *dnet_ntoa (struct dn_naddr *addr)
dnet_ntoa Converts the binary DECnet address addr into area.node ascii notation (1.1, 63.4, etc).
#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)); }