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