I am as I said before studying C as a student and I keep hearing fflush(stdin) is wrong. I think I understand why and I have found posts explaining why fflush(stdin) is wrong. The instructor is the one who told us to use it as well as the book but I am aware that some of the books show methods of doing things that work but not in all cases and aren't the best way to do it only the simplest.
The question is after searching the forum I have found very little that points me towards how Im supposed to clear the buffer manually. I really would rather not see source on how its done either I would rather learn it on my own than copy someone elses code. Can anyone either point me towards something that might give better clues or what exactly needs to be done to clear the input buffer? I would ask for functions but that kind of defeats the point in not looking at other peoples code.