Address conversion routines.
Standard C Library (libc.a)
#include <sys/types.h>
#include <netns/ns.h>
char *ns_ntoa (
struct ns_addr ns)
The ns_ntoa subroutine takes addresses and returns ASCII strings representing the address in a notation in common use in the Xerox Development Environment:
<network number> <host number> <port number>
Trailing zero fields are suppressed, and each number is printed in hexadecimal, in a format suitable for input to the ns_addr subroutine. Any fields lacking super-decimal digits will have a trailing H appended.
Item | Description |
---|---|
ns | Returns a pointer to a string. |