file won't open apparently

This commit is contained in:
Phuntsok Drak-pa 2018-11-11 17:05:03 +01:00
parent 8a2b6c73d4
commit 0315cbf7dd
3 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
#include "common.h"
#include "ppm.h"
bool sameColor(Pixel_t t_pixel, Zone_t t_zone) {
return t_pixel->r == t_zone->r && t_pixel->g == t_zone->g &&

View File

@ -124,7 +124,6 @@ int main(int argc, char **argv) {
}
printf("input: %s\noutput: %s\n", argresults.input, argresults.output);
if(argresults.compress) {
puts("Compressing...");
compress(argresults.input);
} else {
puts("Uncompressing...");

View File

@ -24,6 +24,7 @@
* \return Pointeur de fichier
*/
FILE* get_file(const char *t_filename, const char* t_mode) {
printf("Opening, fopen(\"%s\", \"%s\")\n", t_filename, t_mode);
FILE* fp = fopen(t_filename, t_mode);
printf("Opened file... maybe?\n");
if (!fp) {