
30 Jan
2006
30 Jan
'06
11:27 a.m.
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