MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / _sys_sprintf

Function _sys_sprintf

ps3fw/sys_libc_.cpp:551–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551s32 _sys_sprintf(ppu_thread& ppu, vm::ptr<char> buffer, vm::cptr<char> fmt,
552 ppu_va_args_t va_args)
553{
554 sysPrxForUser.warning("_sys_sprintf(buffer=*0x%x, fmt=%s, ...)", buffer, fmt);
555
556 std::string result = ps3_fmt(ppu, fmt, va_args.count);
557
558 std::memcpy(buffer.get_ptr(), result.c_str(), result.size() + 1);
559
560 return static_cast<s32>(result.size());
561}
562
563error_code _sys_vprintf()
564{

Callers

nothing calls this directly

Calls 4

ps3_fmtFunction · 0.85
c_strMethod · 0.80
get_ptrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected