4 ms·
>Why don't people use snprintf? Old habits perhaps? When I look back at it I remember that my first books on C were full of problematic sprintf and strcpy use.
by runarb 13y ago
>Why don't people use snprintf?
Old habits perhaps? When I look back at it I remember that my first books on C were full of problematic sprintf and strcpy use. It may then easy to continue using what you first learned, even when you know better. It basically the "Baby duck syndrome"[0] for C functions.
0: http://en.wikipedia.org/wiki/Imprinting_(psychology)#Baby_duck_syndrome http://en.wikipedia.org/wiki/Imprinting_(psychology)#Baby_du...