Charlie Gordon said:
> "Richard Heathfield" <rjh@see.sig.invalid> a écrit dans le message de
> news: qdydnRU5I5AsFZHanZ2dnUVZ8qWhnZ2d@bt.com...
>>
<strncpy implementation>
>>
>> How did I do? Should I start blushing yet?
>
> Why do you include <stddef.h> instead of <string.h> ?
I needed a definition for size_t. This is defined in <stddef.h> (as well as
in other places), which is why I included it. I didn't see any particular
need to include <string.h>, since it contained nothing I remembered
needing. On reflection, it would have been useful to pick up the
<string.h> prototype of strncpy, just on the off-chance that I
misremembered the n type. (And yes, had I done so, I could have omitted
the <stddef.h> header completely.)
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999