SNOOPerToCSV/Inc/Tool_Functions.hpp

25 lines
543 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __TOOL_FUNCTIONS_HPP__
#define __TOOL_FUNCTIONS_HPP__
#include "Config.hpp"
extern "C"
{
#include "stdint.h"
#include "stdio.h"
#include "stdbool.h"
}
// 行进到上一行起始位置
size_t f_seek_pre_line_begin(FILE *file);
// 读取文件一行
size_t f_getline(FILE *file, char *buffer, const size_t buffer_len);
// 进度条打印
void progress_print(size_t completed, size_t total, bool reflush);
// 16进制字符串转十进制数值8字节
uint64_t hex_to_decimal(const char *str);
#endif