XNS address conversion routines.
#include <sys/types.h> #include <netns/ns.h> char *ns_ntoa ( struct ns_addr ns)
The ns_ntoa subroutine takes XNS 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.
Note: The string returned by ns_ntoa resides in static memory.
ns | Returns a pointer to a string. |
The ns_ntoa subroutine is part of Base Operating System (BOS) Runtime.