All pastes #728030 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-06 16:58 UTC
rendered paste body

   if((fp2=fopen(argv[2], "rb")) == NULL)
    {  fprintf(stderr, "Error: Opening the pattern file\n");
       exit(EXIT_FAILURE);
    }

   while(!feof(fp2))
    {fread(&pixel, sizeof(Pixel), 1, fp2);
     printf("%d\n", pixel.red);
     printf("%d\n", pixel.green);
     printf("%d\n", pixel.blue);
    }