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

Function GetString

src/drivers/common/cheat.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "../../fceu.h"
25
26static void GetString(char *s, int max)
27{
28 int x;
29 if ( fgets(s,max,stdin) == nullptr )
30 {
31 s[0] = 0;
32 return;
33 }
34
35 for(x=0;x<max;x++)
36 if(s[x]=='\n')
37 {
38 s[x]=0;
39 break;
40 }
41}
42
43/* Get unsigned 16-bit integer from stdin in hex. */
44static uint32 GetH16(unsigned int def)

Callers 4

AppWndProcFunction · 0.85
ModifyCheatFunction · 0.85
AddCheatGGPARFunction · 0.85
AddCheatParamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected