Richard Heathfield wrote:
> Richard's attitude towards strncpy is this:
>
> (a) it has a lousy name;
> (b) there is rarely any point in using it;
> (c) it is likely that most uses of it are flawed;
> (d) there are occasions on which it is The Right Thing;
> (e) because of (c), it is tempting to advise people to eschew it
> completely, but because of (d),
> he thinks that a better solution would be
> to educate people about its proper use
> and to correct their misconception that it is a "safe" strcpy.
I have never written a program that used strncpy,
except as an academic exercise.
How often do you use strncpy, Dr Heath Field?
--
pete