This function sets the index marker to the beginning of the protocols table. Passing a nonzero stay_open argument will allow the index to advance until you call the endprotoent() or exit() function. Related Functions See also endprotoent(), exit(), and getprotoent().