MCPcopy Create free account
hub / github.com/SmingHub/Sming / m_vprintf

Function m_vprintf

Sming/System/m_printf.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84int m_vprintf ( const char * format, va_list arg )
85{
86 if (!_puts_callback)
87 {
88 return 0;
89 }
90
91 char buf[MPRINTF_BUF_SIZE];
92 int len = m_vsnprintf(buf, sizeof(buf), format, arg);
93 return _puts_callback(buf, std::min((size_t)len, sizeof(buf)));
94}
95
96
97/**

Callers 3

WRAP(vprintf)Function · 0.85
WRAP(printf)Function · 0.85
m_printfFunction · 0.85

Calls 2

m_vsnprintfFunction · 0.85
minFunction · 0.85

Tested by

no test coverage detected