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 "common.h"
#include "ppm.h"
bool sameColor(Pixel_t t_pixel, Zone_t t_zone) { bool sameColor(Pixel_t t_pixel, Zone_t t_zone) {
return t_pixel->r == t_zone->r && t_pixel->g == t_zone->g && 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); printf("input: %s\noutput: %s\n", argresults.input, argresults.output);
if(argresults.compress) { if(argresults.compress) {
puts("Compressing...");
compress(argresults.input); compress(argresults.input);
} else { } else {
puts("Uncompressing..."); puts("Uncompressing...");

View File

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