Subject: Re: [boost] [test] Use of snprintf
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-11-23 10:55:34
Mateusz Loskot <mateusz <at> loskot.net> writes:
> Bo Schwarzstein wrote:
> > As I known, the C standard function snprintf renamed to _snprintf in MSVC,
> > maybe that caused your problem.
> snprintf is C99 function.
> Visaul C++ defines similar function _snprintf, however it is not
> equivalent 100% compatible with snprintf defined in C99.
Seems to be working fine for our purposes.
> Nevertheless, Comeau does not define snprintf in C++ mode.
> So, in order to compile Boost.Test using Comeau,
> it needs to be emulated, possibly using <sstream> features.
> Gennadiy, would it be acceptable?
I'd rather use wrapper around sprintf, which drops n.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk