#include <netx25/x25_proto.h>
#include <netx25/xnetdb.h>
struct padent * getpadbyaddr(
char *addr
);
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.
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. |
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.