File: log.cpp

package info (click to toggle)
unrar-nonfree 1%3A3.5.4-1.1
  • links: PTS
  • area: non-free
  • in suites: etch
  • size: 884 kB
  • ctags: 2,391
  • sloc: cpp: 16,784; makefile: 28
file content (24 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "rar.hpp"


static char LogName[NM];

void InitLogOptions(char *LogName)
{
  strcpy(::LogName,LogName);
}


#ifndef SILENT
void Log(const char *ArcName,const char *Format,...)
{
  safebuf char Msg[2*NM+1024];
  va_list ArgPtr;
  va_start(ArgPtr,Format);
  vsprintf(Msg,Format,ArgPtr);
  va_end(ArgPtr);
  eprintf("%s",Msg);
}
#endif