getrpcent()

The getrpcent() call returns the next entry in the TCPIP\ETC\RPC file.

Syntax

#include <rpcnetdb.h>

struct rpcent *getrpcent()

Return Values

The getrpcent() call returns a pointer to the next entry in the TCPIP\ETC\RPC file. The rpcent structure is defined in the <RPC\RPCNETDB.H> header file and contains the following elements:

Element

r _ name r _ aliases r _ number

The return value points to static data that later calls overwrite. A pointer to an rpcent structure indicates success. A NULL pointer indicates an error or EOF.

Related Calls


[Back: getrpcbynumber()]
[Next: pmap_getmaps()]