Windows CRT-specific function I had in mind was _vscprintf().

Was missing the s to estimate buffer size.  Without that it will print to console.