I thought windows had "_snprintf" which would just make this be a #define.