Since seems compilers sometimes behave differently on interpreting format specifiers and % - instead of escaping % maybe it would be better to just replace fprintf with std::fputs.
Formatting is not needed anyway in the particular case; fputs is simpler and behaves more consistently within the different compilers. I just tested that on Solaris and it works fine.
Since seems compilers sometimes behave differently on interpreting format specifiers and % - instead of escaping % maybe it would be better to just replace fprintf with std::fputs.
Formatting is not needed anyway in the particular case; fputs is simpler and behaves more consistently within the different compilers. I just tested that on Solaris and it works fine.