|
Boost : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2006-01-30 06:27:47
John Maddock wrote:
>> 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 ? :->
IEEE Std 1003.1, 2004 Edition
Markus
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk