How to invert an image in c without external libraries…? Is it possible?

How to invert an image in c without external libraries...? Is it possible?