For submission
This commit is contained in:
@ -41,10 +41,12 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
printf("Chunk size is:%d\n", chunks[i]->length);
|
||||
}
|
||||
char new_path[PATH_MAX];
|
||||
getcwd(new_path, sizeof(new_path));
|
||||
strcat(new_path, "/output.png");
|
||||
write_png_chunks(new_path, chunks);
|
||||
// Uncomment to not overwrite original file
|
||||
//char new_path[PATH_MAX];
|
||||
//getcwd(new_path, sizeof(new_path));
|
||||
//strcat(new_path, "/output.png");
|
||||
//write_png_chunks(new_path, chunks);
|
||||
write_png_chunks(path, chunks);
|
||||
destroy_chunks(chunks);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user