Function call changes variables that are supposed to be unrelated ?!?!
I have been using a canned routine from numerical recipes called bnldev.c. when i call bnldev within my code, the function apparently changes variables that should be completely unrelated! (for instance, it changes a counter variable used in the loop from where bnldev is called).
does anyone know why this might be occurring and how i could fix it? i have attached the code reed3.c with some printf statements indicating an example of where the error occurs (lines 256-267, and bnldev is defined at the top of the code). i have also attached supporting libraries.
thanks,
chris