dnet_addr

The dnet_addr identifier converts an ASCIZ DECnet Phase IV node address string to a binary address.

#include <ws2dnet.h>

struct dn_naddr FAR * WSAAPI dnet_addr(const char FAR *cp);
 
cp Specifies the address of a character string that contains a DECnet node address in the form a.n (area.node). For example, 9.440 is a DECnet Phase IV node number.

Return Values

dnet_addr returns a pointer to dn_naddr structure

If successful, it returns a pointer to a dn_naddr structure which contains a binary DECnet address. Applications should copy this data before issuing another dnet_addr call. Otherwise, it returns a NULL pointer.