"Fossies" - the Fresh Open Source Software Archive

Member "unrar/resource.cpp" (4 May 2022, 344 Bytes) of package /linux/misc/unrarsrc-6.1.7.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "resource.cpp" see the Fossies "Dox" file reference documentation.

    1 #include "rar.hpp"
    2 
    3 
    4 
    5 
    6 
    7 #ifndef RARDLL
    8 const wchar* St(MSGID StringId)
    9 {
   10   return StringId;
   11 }
   12 
   13 
   14 // Needed for Unix swprintf to convert %s to %ls in legacy language resources.
   15 const wchar *StF(MSGID StringId)
   16 {
   17   static wchar FormattedStr[512];
   18   PrintfPrepareFmt(St(StringId),FormattedStr,ASIZE(FormattedStr));
   19   return FormattedStr;
   20 }
   21 #endif
   22