mg_resolve_from_hosts_file.md 273 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
---
title: "mg_resolve_from_hosts_file()"
decl_name: "mg_resolve_from_hosts_file"
symbol_kind: "func"
signature: |
  int mg_resolve_from_hosts_file(const char *host, union socket_address *usa);
---

Resolve a name from `/etc/hosts`.

Returns 0 on success, -1 on failure.