/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
+/* (C) 2000 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
{
#if defined(__WATCOMC__)
int Res = _vbprintf (Buf, BufSize, Format, ap);
-#elsif defined(__GNUC__)
+#elif defined(__GNUC__)
int Res = vsnprintf (Buf, BufSize, Format, ap);
+#elif defined(_MSC_VER)
+ int Res = _vsnprintf (Buf, BufSize, Format, ap);
#else
+ /* Unsafe version */
int Res = vsprintf (Buf, Format, ap);
#endif
assert (Res >= 0 && (unsigned) Res < BufSize);
- return Res;
+ return Res;
}