FastBQSR/src/util/debug.cpp

31 lines
722 B
C++
Raw Normal View History

/*********************************************************************************************
Description: data and files for debugging
Copyright : All right reserved by NCIC.ICT
Author : Zhang Zhonghai
Date : 2024/04/09
***********************************************************************************************/
#include "debug.h"
#include <stdio.h>
FILE* gf[4] = {0};
int open_debug_files() {
char fn[1024] = {0};
int i = 0;
for (; i < 4; ++i) {
sprintf(fn, "./test/fp%d.txt", i);
gf[i] = fopen(fn, "w");
}
return 0;
}
int close_debug_files() {
int i = 0;
for (; i < 4; ++i) {
if (gf[i] != 0)
fclose(gf[i]);
}
return 0;
}