* \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 */
| 110 | * @param msg printf message |
| 111 | */ |
| 112 | void |
| 113 | tsk_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 | } |
no test coverage detected