Afficher un message
Vieux 17/10/2007, 23h54   #5
pete
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bug/Gross InEfficiency in HeathField's fgetline program

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
  Réponse avec citation
 
Page generated in 0,04154 seconds with 9 queries