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