| 1 |
#pragma once |
| 2 |
#include <stdint.h> |
| 3 |
#include <stdio.h> |
| 4 |
#include <stdlib.h> |
| 5 |
#include <string.h> |
| 6 |
#include <unistd.h> |
| 7 |
#include <fcntl.h> |
| 8 |
|
| 9 |
#include <utils.h> |
| 10 |
#include <ScopeHelpers.h> |
| 11 |
|
| 12 |
unsigned long CRC32(unsigned long crc, const char *buf, unsigned int len); |
| 13 |
|
| 14 |
#define _tchartodigit(c) ((c) >= '0' && (c) <= '9' ? (c) - '0' : -1) |
| 15 |
|
| 16 |
void TrimEnd(char *lpStr); |
| 17 |
void TrimStart(char *lpStr); |
| 18 |
void Trim(char *lpStr); |
| 19 |
void strmove(char *dst, const char *src); |
| 20 |
|
| 21 |
int OpenInputFile(const char *path); |
| 22 |
int CreateOutputFile(const char *path); |
| 23 |
size_t QueryFileSize(int fd); |