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

Function NAME

src/unif.cpp:149–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static int NAME(FCEUFILE *fp) {
150 char namebuf[100];
151 int index;
152 int t;
153
154 FCEU_printf(" Name: ");
155 index = 0;
156
157 while ((t = FCEU_fgetc(fp)) > 0)
158 if (index < 99)
159 namebuf[index++] = t;
160
161 namebuf[index] = 0;
162 FCEU_printf("%s\n", namebuf);
163
164 if (!GameInfo->name) {
165 GameInfo->name = (uint8*)malloc(strlen(namebuf) + 1); //mbg merge 7/17/06 added cast
166 strcpy((char*)GameInfo->name, namebuf); //mbg merge 7/17/06 added cast
167 }
168 return(1);
169}
170
171static int DINF(FCEUFILE *fp) {
172 char name[100], method[100];

Callers

nothing calls this directly

Calls 2

FCEU_printfFunction · 0.85
FCEU_fgetcFunction · 0.85

Tested by

no test coverage detected