MCPcopy Create free account
hub / github.com/dborth/fceugx / readInt3

Function readInt3

source/patch.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static int readInt3(MFILE *f) {
35 int res = 0;
36 int c = memfgetc(f);
37 if (c == MEOF)
38 return -1;
39 res = c;
40 c = memfgetc(f);
41 if (c == MEOF)
42 return -1;
43 res = c + (res << 8);
44 c = memfgetc(f);
45 if (c == MEOF)
46 return -1;
47 return c + (res << 8);
48}
49
50static s64 readInt4(MFILE *f) {
51 s64 tmp, res = 0;

Callers 1

patchApplyIPSFunction · 0.85

Calls 1

memfgetcFunction · 0.85

Tested by

no test coverage detected