Original Post
I'm attempting to write a console function (in linux, though I doubt it'll matter), and I'm attempting to use the carriage return so I can have a prompt that prints out the percentage done of the processing I'm doing. But I can't remember how to properly use the carriage return so when I print next, it replaces the last statement that gives the percentage. Here's what I have:
printf("\rAmount of image processed: %d%%", (int)(temp*100) );
I'm currently running linux through putty by logging onto my uni, although I'll mostly be working on this at uni where I'll be running linux on the comp and not through ssh.