MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / host_inet_addr

Function host_inet_addr

src/bsdsocket.cpp:2086–2098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084}
2085
2086uae_u32 host_inet_addr(TrapContext *ctx, uae_u32 cp)
2087{
2088 uae_u32 addr;
2089 char *cp_rp;
2090
2091 if (!trap_valid_address(ctx, cp, 4))
2092 return 0;
2093 cp_rp = trap_get_alloc_string(ctx, cp, 256);
2094 addr = htonl(inet_addr(cp_rp));
2095 BSDTRACE((_T("inet_addr(%s) -> 0x%08lx\n"), cp_rp, addr));
2096 xfree(cp_rp);
2097 return addr;
2098}
2099
2100uae_u32 host_Inet_LnaOf(uae_u32 in)
2101{

Callers 2

bsdsocklib_inet_addrFunction · 0.85
bsdsocklib_inet_networkFunction · 0.85

Calls 2

trap_valid_addressFunction · 0.85
trap_get_alloc_stringFunction · 0.85

Tested by

no test coverage detected