MCPcopy Create free account
hub / github.com/amule-project/amule / Printf

Method Printf

src/webserver/src/php_core_lib.cpp:584–597  ·  view source on GitHub ↗

* For simplicity and performance sake, this function can * only handle limited-length printf's. In should be NOT be used * for string concatenation like printf("xyz %s %s", s1, s2). * * Engine will call Print for "print" and "echo" */

Source from the content-addressed store, hash-verified

582 * Engine will call Print for "print" and "echo"
583 */
584void CPhPLibContext::Printf(const char *str, ...)
585{
586 va_list args;
587
588 va_start(args, str);
589 if ( !g_curr_context || !g_curr_context->m_curr_str_buffer ) {
590 vprintf(str, args);
591 } else {
592 char buf[4096];
593 vsnprintf(buf, sizeof(buf), str, args);
594 g_curr_context->m_curr_str_buffer->Write(buf);
595 }
596 va_end(args);
597}
598
599void CPhPLibContext::Print(const char *str)
600{

Callers 1

ShowResultsMethod · 0.80

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected