Review the correct usage of code tags in the sticky concerning them - I edited your post to make it more readable.

I don't see where the label "EXIT_" is in your code, so it's a bit hard to understand your problem. Furthermore, the use of goto is looked down upon in C-circles - there is almost always a better solution. Try to rearrange your code using more modern constructs such as functions (returning a value instead of going to EXIT_ perhaps?), etc...