Quote:
I don't beleive for a second that this is the case, but you are creating a local 2D array that is dimensioned by width and height rather than the EP100_LIB_MAX_X/Y constants. This means that the second row of pixels start at "width" pixels down, rather than EP100_LIB_MAX_X pixels down that at least I am convinced it should.
Also, using variables to size an array is an extension that is only supported by some compilers - you should really use constants.
Yes, but one that contains YOUR function - I presume that ep100_lib.h doesn't have a "invert_image()" in it...
I am using a make file which compiles them both.
Quote:
No, you should USE what's been returned, and make sure that what you return is not a a local variable that "disappears" after you've left the function.
thast where i am a little confused on how i can use the pointer between two files?