buf</td><td>pre-allocated buffer where to store additional data </td></tr>
    <tr><td class="paramname">buflen</td><td>the size of buf </td></tr>
    <tr><td class="paramname">result</td><td>pointer to a hostent pointer that is set to ret on success and set to zero on error </td></tr>
    <tr><td class="paramname">h_errnop</td><td>pointer to an int where to store errors (instead of modifying the global h_errno) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success,