]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/ui.c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
17 double CursorScaleFactor
;
18 int PlotGridX
, PlotGridY
;
21 static char *logfilename
= "proxmark3.log";
23 void PrintAndLog(char *fmt
, ...)
25 va_list argptr
, argptr2
;
26 static FILE *logfile
= NULL
;
29 if (logging
&& !logfile
) {
30 logfile
=fopen(logfilename
, "a");
32 fprintf(stderr
, "Can't open logfile, logging disabled!\n");
37 va_start(argptr
, fmt
);
38 va_copy(argptr2
, argptr
);
42 if (logging
&& logfile
) {
43 vfprintf(logfile
, fmt
, argptr2
);
44 fprintf(logfile
,"\n");
50 void SetLogFilename(char *fn
)