MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / utf8_printf

Function utf8_printf

modules/dasSQLITE/sqlite/shell.c:605–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603*/
604#if defined(_WIN32) || defined(WIN32)
605void utf8_printf(FILE *out, const char *zFormat, ...){
606 va_list ap;
607 va_start(ap, zFormat);
608 if( stdout_is_console && (out==stdout || out==stderr) ){
609 char *z1 = sqlite3_vmprintf(zFormat, ap);
610 char *z2 = sqlite3_win32_utf8_to_mbcs_v2(z1, 0);
611 sqlite3_free(z1);
612 fputs(z2, out);
613 sqlite3_free(z2);
614 }else{
615 vfprintf(out, zFormat, ap);
616 }
617 va_end(ap);
618}
619#elif !defined(utf8_printf)
620# define utf8_printf fprintf
621#endif

Callers 15

iotracePrintfFunction · 0.85
utf8_width_printFunction · 0.85
shellLogFunction · 0.85
shellPutsFuncFunction · 0.85
failIfSafeModeFunction · 0.85
output_quoted_stringFunction · 0.85
output_html_stringFunction · 0.85
output_csvFunction · 0.85
shellAuthFunction · 0.85
printSchemaLineFunction · 0.85
eqp_appendFunction · 0.85

Calls 1

vfprintfFunction · 0.85

Tested by

no test coverage detected