Signed-off-by: Pin <wf6DJd8a3xSSCZbn@protonmail.com>
This commit is contained in:
Pin
2021-09-21 01:15:03 -04:00
parent fafe5a4520
commit 3b8fd9c901
9 changed files with 477 additions and 0 deletions

11
include/crc_util.h Normal file
View File

@@ -0,0 +1,11 @@
#include <stdio.h>
// PNG File Struct
struct PNG
extern const long png_signature[8];
int check_header_length(unsigned char *addr, long offset);
int check_file_header(char *addr);
int create_cc_file(unsigned char *addr, unsigned long file_length);
unsigned char* file_to_char_array(FILE *in_file, size_t* size);