Skip to main content

Questions tagged [pest4]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Filter segmentation fault

my code on Pset4 filter shows everything green with check50 command. But when I try running this "./filter -g images/yard.bmp out.bmp" it shows "segmentation fault". please can ...
Israel Udofia's user avatar
1 vote
1 answer

PEST4 Resize (less comfortable)

Could you assist me to look at my codes, no idea why after resizing small imagine, it turns out very weird result. #include <stdio.h> #include <stdlib.h> #include <string.h> #...
WEI-WEN HUNG's user avatar
0 votes
1 answer

pset4 resize :- storing horizontal scanline into array

So I declared an array of type rgbtriple as in RGBTRIPLE* buffer = malloc(sizeof(bi.biWidth)); and now i want to read in each pixel n times, so using a for loop like for(int m = 0; m < n ; n++) ...
user14992's user avatar
0 votes
1 answer

pset4 recover invalid file

int main() { FILE* raw = fopen("card.raw","r"); if( raw == NULL) { printf("ERROR OPENING\n"); } uint8_t buffer[512]; while(fread(buffer,1,512,raw)==512) { ...
Ranjan Shrestha's user avatar