MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / OutComment

Function OutComment

Libraries/unrar/consio.cpp:343–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341
342
343void OutComment(const wchar *Comment,size_t Size)
344{
345 if (IsCommentUnsafe(Comment,Size))
346 return;
347 const size_t MaxOutSize=0x400;
348 for (size_t I=0;I<Size;I+=MaxOutSize)
349 {
350 wchar Msg[MaxOutSize+1];
351 size_t CopySize=Min(MaxOutSize,Size-I);
352 wcsncpy(Msg,Comment+I,CopySize);
353 Msg[CopySize]=0;
354 mprintf(L"%s",Msg);
355 }
356 mprintf(L"\n");
357}

Callers 1

ViewCommentMethod · 0.85

Calls 2

IsCommentUnsafeFunction · 0.85
mprintfFunction · 0.70

Tested by

no test coverage detected