Howdy,
I have a program that reads filenames from a file and then displays them on the screen. The problem is that some of the file names contain the percent sign and that throws off printf.
I know that %% will display the percent sign, but how would I go through a string and replace % with %% everytime it appears in the filename in C?.
What is the easiest way to do this?
Is there a way to get around searching for the %, then reallocating the character array, then inserting the first piece of the code, add % , then add the second piece...blah blah blah (then the sound of me jumping off the bridge since my deadline ain't met.)
Thanks![]()
Will



LinkBack URL
About LinkBacks



