file won't open apparently
This commit is contained in:
parent
8a2b6c73d4
commit
0315cbf7dd
@ -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 &&
|
||||||
|
@ -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...");
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user