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

Function read_string

src/debug.cpp:9464–9478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9462}
9463
9464static void read_string(char *out, int max, uae_u32 addr)
9465{
9466 out[0] = 0;
9467 for (int i = 0; i < max; i++) {
9468 uae_u8 c = 0;
9469 if (valid_address(addr, 1)) {
9470 c = get_byte(addr);
9471 }
9472 addr++;
9473 out[i] = c;
9474 out[i + 1] = 0;
9475 if (!c)
9476 break;
9477 }
9478}
9479
9480static void parse_custom(char *out, int buffersize, char *format, char *p, char c)
9481{

Callers 1

debug_sprintf_doFunction · 0.85

Calls 2

get_byteFunction · 0.85
valid_addressFunction · 0.70

Tested by

no test coverage detected