[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 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.


[ Previous | Next | Contents | Glossary | Home | Search ]