.BR getprotoent ()
function reads the next entry from the protocols database (see
.BR protocols (5))
-and returns a \fIprotoent\fP structure
+and returns a
+.I protoent
+structure
containing the broken-out fields from the entry.
A connection is opened to the database if necessary.
.PP
The
.BR getprotobyname ()
-function returns a \fIprotoent\fP structure
+function returns a
+.I protoent
+structure
for the entry from the database
-that matches the protocol name \fIname\fP.
+that matches the protocol name
+.IR name .
A connection is opened to the database if necessary.
.PP
The
.BR getprotobynumber ()
-function returns a \fIprotoent\fP structure
+function returns a
+.I protoent
+structure
for the entry from the database
-that matches the protocol number \fInumber\fP.
+that matches the protocol number
+.IR number .
A connection is opened to the database if necessary.
.PP
The
.BR setprotoent ()
function opens a connection to the database,
and sets the next entry to the first entry.
-If \fIstayopen\fP is nonzero,
+If
+.I stayopen
+is nonzero,
then the connection to the database
will not be closed between calls to one of the
.BR getproto* ()
.BR endprotoent ()
function closes the connection to the database.
.PP
-The \fIprotoent\fP structure is defined in \fI<netdb.h>\fP as follows:
+The
+.I protoent
+structure is defined in
+.I <netdb.h>
+as follows:
.sp
.in +4n
.nf
.fi
.in
.PP
-The members of the \fIprotoent\fP structure are:
+The members of the
+.I protoent
+structure are:
.TP
.I p_name
The official name of the protocol.
and
.BR getprotobynumber ()
functions return a pointer to a
-statically allocated \fIprotoent\fP structure, or a NULL pointer if an
+statically allocated
+.I protoent
+structure, or a NULL pointer if an
error occurs or the end of the file is reached.
.SH FILES
.PD 0