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

Function asprintf

src/file.cpp:484–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482
483 #ifndef HAVE_ASPRINTF
484 static int asprintf(char **strp, const char *fmt, ...)
485 {
486 va_list ap;
487 int ret;
488
489 if(!(*strp=(char*)FCEU_malloc(2048))) //mbg merge 7/17/06 cast to char*
490 return(0);
491 va_start(ap,fmt);
492 ret=vsnprintf(*strp,2048,fmt,ap);
493 va_end(ap);
494 return(ret);
495 }
496 #endif
497
498std::string FCEU_GetPath(int type)

Callers 2

CheckNBTCPReceiveFunction · 0.85
KillClientFunction · 0.85

Calls 1

FCEU_mallocFunction · 0.85

Tested by

no test coverage detected