| 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 | |
| 498 | std::string FCEU_GetPath(int type) |
no test coverage detected