Solstice X.25 9.2 Developer's Guide

8.9 getpadbyaddr--Get PAD Database Entry for Address

Synopsis
#include <netx25/x25_proto.h>
 #include <netx25/xnetdb.h>

    struct padent * getpadbyaddr(
       char *addr
    );
Description

getpadbyaddr returns a pointer to the padent structure, containing the entry from the PAD Hosts Database for the specified address. See "8.3 The padent Structure" for a description of the padent structure.

Arguments

The parameters are:

Table 8-11 getpadbyaddr parameters

Parameter 

Description 

addr

A pointer to a structure containing the address of the host whose database entry you want.  

Return Value

getpadbyaddr returns a pointer to static storage. You must copy the value in order to keep and reuse it. A return value of 0 indicates that no match was found.