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

Function readInt2

source/patch.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "filebrowser.h"
21
22static int readInt2(MFILE *f) {
23 int res = 0;
24 int c = memfgetc(f);
25 if (c == MEOF)
26 return -1;
27 res = c;
28 c = memfgetc(f);
29 if (c == MEOF)
30 return -1;
31 return c + (res << 8);
32}
33
34static int readInt3(MFILE *f) {
35 int res = 0;

Callers 1

patchApplyIPSFunction · 0.85

Calls 1

memfgetcFunction · 0.85

Tested by

no test coverage detected