MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / consoleStreamWrite

Function consoleStreamWrite

common/script/scriptconsole.cpp:358–363  ·  view source on GitHub ↗

newlib spells the length parameter with its own typedef (size_t on both toolchains); using the macro keeps the signature funopen wants exactly.

Source from the content-addressed store, hash-verified

356// newlib spells the length parameter with its own typedef (size_t on both
357// toolchains); using the macro keeps the signature funopen wants exactly.
358static int consoleStreamWrite(void* cookie, const char* buf, _READ_WRITE_BUFSIZE_TYPE n)
359{
360 (void)cookie;
361 ScriptConsole::get().write(buf, (size_t)n);
362 return (int)n;
363}
364
365FILE* ckpt_console_stdout(void)
366{

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected