Copyright © tutorialspoint.com
Syntax
Definition and UsageAs getprotoent() retriews the information for the next line in the protocol database, then setprotoent sets (or resets) the enumeration to the beginning of the set of host entries. This function should be called before the first call to getprotoent. The STAYOPEN argument is optional and unused on most systems. Return Value
ExampleTry out following example:
|
Copyright © tutorialspoint.com