MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / HL_WTrace2

Function HL_WTrace2

src/Helpers.c:2290–2311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2288 }
2289}
2290VOID HL_WTrace2 ( const char *fmt , LPCWSTR word1 , LPCWSTR word2 )
2291{
2292 if ( _hL_log ) {
2293 int size ;
2294 char *temp , *temp2;
2295 SYSTEMTIME st;
2296 //
2297 GetLocalTime ( &st );
2298 fprintf ( _hL_log , "- [%d:%d:%d] " , st.wMinute , st.wSecond , st.wMilliseconds );
2299 //
2300 temp = HL_Alloc ( size = WideCharToMultiByte ( CP_UTF8 , 0 , word1 , -1 , NULL , 0 , NULL, NULL ) );
2301 WideCharToMultiByte ( CP_UTF8 , 0 , word1 , -1 , temp , size , NULL, NULL );
2302 temp2 = HL_Alloc ( size = WideCharToMultiByte ( CP_UTF8 , 0 , word2 , -1 , NULL , 0 , NULL, NULL ) );
2303 WideCharToMultiByte ( CP_UTF8 , 0 , word2 , -1 , temp2 , size , NULL, NULL );
2304 fprintf ( _hL_log , fmt , temp , temp2 );
2305 HL_Free ( temp );
2306 HL_Free ( temp2 );
2307 //
2308 fprintf ( _hL_log , "\r\n" );
2309 fflush ( _hL_log );
2310 }
2311}
2312BOOL HL_Test_offset_tail ( WCHAR *wch )
2313{
2314 while ( *wch ) {

Callers

nothing calls this directly

Calls 2

HL_AllocFunction · 0.85
HL_FreeFunction · 0.85

Tested by

no test coverage detected