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

Method splitKeyValuePair

src/ld65dbg.cpp:240–261  ·  view source on GitHub ↗

---------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

238 }
239 //---------------------------------------------------------------------------------------------------
240 int database::dbgLine::splitKeyValuePair( char *keyValueBuffer, char **keyPtr, char **valuePtr )
241 {
242 size_t i=0;
243
244 if (keyPtr != nullptr)
245 {
246 *keyPtr = keyValueBuffer;
247 }
248 while (keyValueBuffer[i] != 0)
249 {
250 if (keyValueBuffer[i] == '=')
251 {
252 keyValueBuffer[i] = 0; i++; break;
253 }
254 i++;
255 }
256 if (valuePtr != nullptr)
257 {
258 *valuePtr = &keyValueBuffer[i];
259 }
260 return 0;
261 }
262 //---------------------------------------------------------------------------------------------------
263 int database::dbgFileLoad( const char *dbgFilePath )
264 {

Callers 1

dbgFileLoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected