Compare commits
1 Commits
702c44ad94
...
3b8fd9c901
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b8fd9c901 |
@@ -175,9 +175,10 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fp = fopen("./1.png", "rt");
|
fp = fopen("./1.png", "rt");
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char *file_data = file_to_char_array(fp, &i);
|
unsigned char *file_data = file_to_char_array(fp, &i);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
// PNG File Struct
|
||||||
|
struct PNG
|
||||||
|
|
||||||
extern const long png_signature[8];
|
extern const long png_signature[8];
|
||||||
|
|
||||||
int check_header_length(unsigned char *addr, long offset);
|
int check_header_length(unsigned char *addr, long offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user