[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 1

ns_ntoa Subroutine

Purpose

XNS 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 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.

Parameter

ns Returns a pointer to a string.

Implementation Specifics

The ns_ntoa subroutine is part of Base Operating System (BOS) Runtime.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]