MCPcopy Create free account
hub / github.com/decaf-project/DECAF / tsk_printf

Function tsk_printf

decaf/shared/sleuthkit/tsk/base/tsk_printf.c:112–128  ·  view source on GitHub ↗

* \ingroup baselib * printf wrapper function that takes UTF-8 strings as input * (on all platforms) and does what is necessary to output * strings in the correct encoding (UTF-8 on Unix and * UTF-16 on Windows). * * @param msg printf message */

Source from the content-addressed store, hash-verified

110 * @param msg printf message
111 */
112void
113tsk_printf(const char *msg, ...)
114{
115 va_list args;
116 va_start(args, msg);
117
118#ifdef TSK_WIN32
119 {
120 WCHAR wbuf[2048];
121 tsk_printf_conv(wbuf, 2048, msg, &args);
122 wprintf(_TSK_T("%s"), wbuf);
123 }
124#else
125 vprintf(msg, args);
126#endif
127 va_end(args);
128}

Callers 15

mainFunction · 0.85
print_statsFunction · 0.85
part_actFunction · 0.85
print_headerFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
blkstat_actFunction · 0.85
printitFunction · 0.85
print_list_headFunction · 0.85
print_listFunction · 0.85
count_dd_actFunction · 0.85

Calls 2

tsk_printf_convFunction · 0.85
vprintfFunction · 0.85

Tested by

no test coverage detected