MCPcopy Create free account
hub / github.com/TASEmulators/fceux / GetI

Function GetI

src/drivers/common/cheat.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static int GetI(int def)
77{
78 char buf[32];
79
80 if ( fgets(buf,ARRAY_SIZE(buf),stdin) == nullptr )
81 {
82 return def;
83 }
84 if(buf[0]=='\n')
85 return(def);
86 sscanf(buf,"%d",&def);
87 return def;
88}
89
90static int GetYN(int def)
91{

Callers 1

ModifyCheatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected