ns_ntoa Subroutine

Purpose

Address conversion routines.

Library

Standard C Library (libc.a)

Syntax

#include <sys/types.h>
#include <netns/ns.h>

char *ns_ntoa (
struct ns_addr ns)

Description

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.

Note: The string returned by ns_ntoa resides in static memory.

Parameter

Item Description
ns Returns a pointer to a string.