How do you escape the % sign when using printf in C?
printf("hello\%"); /* not like this */
How do you escape the % sign when using printf in C?
printf("hello\%"); /* not like this */
The double '%' works also in ".Format(…).
Example (with iDrawApertureMask == 87, fCornerRadMask == 0.05):
csCurrentLine.Format("\%ADD%2d%C,%6.4f*\%",iDrawApertureMask,fCornerRadMask) ;
gives the desired and expected value of (string contents in) csCurrentLine;
"%ADD87C, 0.0500*%"