I’m using C in Linux. How do I show a progress indicator that will let me know when the program (or parts of the program) will complete? For example, it could be something like “Searching…67%” and the percentage will keep increasing until the Searching portion ends.
Thank you.
I believe if you do something like:
the
fflush()is necessary to avoid the line buffering. Note that I am using\rand not\n.