Use _snprintf() for Windows machine. This is VS2010 compatible function.