The Sleuth Kit  4.12.1
Functions
tsk_printf.c File Reference

These are printf wrappers that are needed so that we can easily print in both Unix and Windows. More...

#include "tsk_base_i.h"
#include <stdarg.h>

Functions

void tsk_fprintf (FILE *fd, const char *msg,...)
 fprintf 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). More...
 
int tsk_print_sanitized (FILE *fd, const char *str)
 Prints the string removing control characters. More...
 
void tsk_printf (const char *msg,...)
 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). More...
 

Detailed Description

These are printf wrappers that are needed so that we can easily print in both Unix and Windows.

For Unix, the internal UTF-8 representation is kept and a normal printf is performed. For Windows, the UTF-8 representation is first converted to UTF-16 and then printed


Copyright © 2007-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.