these functions take different arguments!
Two versions are available in MS compilers. Take a look here . This complies with the ANSI standard. But I think this does not answer your question. I will skip it for a while and soon tell you how you can have uniformity.
make them work with and without _UNICODE?
You are better off using "safe string functions" as recommended by MS. See this . Use `_stprintf_s' and I think you will get around your problem.
Has anyone gone?
EDITED: I don't think so. I do not have sufficient justification to give you an answer. I will post the update when I get something more specific. At the same time, look at the explanations of MSalters.
Curiously, MS C runtime does not claim to be ISO compliant.
Disclaimer: I am not defending the giant Redmond, only pointing out things that seem strange to me!
source share