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