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

Function trap_get_alloc_string

src/traps.cpp:1469–1474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467 return maxlen;
1468}
1469uae_char *trap_get_alloc_string(TrapContext *ctx, uaecptr addr, int maxlen)
1470{
1471 uae_char *buf = xmalloc(uae_char, maxlen);
1472 trap_get_string(ctx, buf, addr, maxlen);
1473 return buf;
1474}
1475
1476int trap_get_bstr(TrapContext *ctx, uae_u8 *haddr, uaecptr addr, int maxlen)
1477{

Callers 2

host_inet_addrFunction · 0.85
host_getprotobynameFunction · 0.85

Calls 1

trap_get_stringFunction · 0.85

Tested by

no test coverage detected