How to escape sprintf() % marks so they wont be recognized as variables?

So is this even possible? If i some day wanted to sprintf(str, "%doodle %d", var); output "%doodle 123" and not "123oodle", how can i stop the first %d from being processed?


%% escapes the %

Need Your Help

Changing date entered by user to previous date

javascript date

Thank you all in advance. I have one form that takes date as input. I have to make one function that sends email before 30 days of the date entered by user. I am making one hidden field that will c...

File reading offset in case of application restart

java oop java-ee

Question is more on designing part than coding.