lets assume for a moment that you are right, at least my post was about the problem can you say the same thing?
No the link provided had all the information on why it might fail and some half solution that could lead to double input from the end user. I did provided a working solution and the systems I tested on. If salem, you or any one else wants to provide a solution for the systems they are interested in I would be very interested on that answer, but most of them have opted to attack my intelligence or lack there of, ignoring the problem all together and never adding anything of value to the discussion.
Any way I'm here because I found what it looks an acceptable solution to the dilemma, instead of using the fflush just use rewind eg
I'm always interested in any criticism on the code for everything else fill free to pm me I'm open to discuss anything you like as long as I find it interesting but do try to keep the thread on subject.Code:printf("Error, Do you want to restart the program (y/n)"); rewind(stdin); scanf("%c",&selection2);
PS
Salem I'm not targeting you, from all the people in here, you are the only one that added something of value at least of value to me. for every one else please do not confuse courtesy with interest or boredom with but-hurt, you are entitled to your opinions and you are welcome to express them but do try to add something of value as well.