Advertisement
Guest User

*.c addendum

a guest
Jan 24th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. /8cZ4Du0S
  2.  
  3. struct iPict R; allociPict(&R,zHt,zWd);
  4. struct iPict G; allociPict(&G,zHt,zWd);
  5. struct iPict B; allociPict(&B,zHt,zWd);
  6. //dithering
  7. pixelFunction(&R,&G,&B,zHt,zWd,0,0,0);
  8.  
  9. the 'struct' calls will always be clean to me. It will load an 800x600 image without segmentation faults. The next call will trigger segmentation faults.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement