|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2006-01-30 06:06:31
> No self-respecting coding standard would allow you to write the code
> above. Rather it would insist that at least you wrote:
>
> snprintf( buffer, 15, "Some %s text", "verly long" );
>
> Does that not solve the problem of overruns?
Um, which portable standard defines snprintf ? :->
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk