My program runs on several platforms. Amongst them, Windows CE. Currently, sprintf is extensively used, which results in a lot of problems with buffer-overflows etc. I want to replace these with calls to snprintf instead. For Visual Studio, I found this question, which solves the win32 part of the problem:
snprintf and Visual Studio 2010
but I can't get it working for Windows CE, since the functions _vsnprintf_s
and _vscprintf
, and the constant _TUNCATE
aren't available. Does anybody know of a way to replicate snprintf (linux) behaviour on Windows CE?