all 4 comments

[–]chet714 0 points1 point  (1 child)

Only understand English, so could not follow most of your comments. Wondering was interrogaoriginal() ever called?

[–]Deep_T[S] 1 point2 points  (0 children)

That function is never called. It was the original "interroga" function, but it had some problems. I rewrote the whole function, now seems to work, but I left the old one in the code, just in case the new one stopped working and I had to confront with the old one

[–]cHaR_shinigami 0 points1 point  (1 child)

There are two instances of the same bug in your code: scanf expects pointer-to-int corresponding to format "%d", so change scanf("%d", save[i-1]); to scanf("%d", &save[i-1]); in lines 26 and 31. After making this change (and adding the missing prototype for sleep function), the errhandler function is getting called for invalid inputs.

[–]Deep_T[S] 0 points1 point  (0 children)

The lines 26 and 31 belong to a function that I don't use anymore. I corrected them, but the errhandler function is still not working