tags:

views:

52

answers:

1

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?

+7  A: 

%% escapes the %

Brian R. Bondy