2
0
mirror of https://github.com/tenrok/Rfid-Credential-Provider.git synced 2026-06-17 19:30:32 +03:00

Z-2 USB Reader

This commit is contained in:
2019-11-29 15:55:40 +03:00
parent 0d171c5d02
commit 0e158db171
44 changed files with 768 additions and 8763 deletions
+6 -6
View File
@@ -5,19 +5,19 @@
#include <string>
#include "Logger.h"
void Log(const char *toWrite){
FILE * pFile;
void Log(const char* toWrite) {
FILE* pFile;
time_t now;
struct tm *ts;
struct tm* ts;
char buf[80];
now = time(NULL);
ts = localtime(&now);
strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S", ts);
pFile = fopen ("C:\\RfidCredentialProvider.log.txt","a");
pFile = fopen("C:\\RfidCredentialProvider.log.txt", "a");
fprintf(pFile, "%s\t%s\n", buf, toWrite);
fclose(pFile);
}