setprotoent()

The setprotoent() call opens and rewinds the ETC\PROTOCOL file.

Syntax

#include <netdb.h>
void setprotoent(stayopen)
int stayopen;

Parameters

stayopen

Description

This call opens and rewinds the ETC\PROTOCOL file, which contains information about known protocols. If the stayopen parameter is nonzero, the ETC\PROTOCOL file stays open after each of the getproto calls.

Related Calls


[Back: setnetent()]
[Next: setservent()]