user input for edge detection busted in c code