Re: completed my Varaint class.

From: Richard Heathfield (invalid_at_address.co.uk.invalid)
Date: 01/26/04


Date: Mon, 26 Jan 2004 07:00:15 +0000

Mike Wahler wrote:

> I tend to
> use <stdlib.h> when I need 'size_t'.
>
> Often I'll #include <string.h> for the C-style string stuff,
> but I'll also still #include <stdlib.h> for 'size_t'.
> This is simply because I always seem to forget that <string.h>
> also declares 'size_t'. I think the best thing is what you
> and I both seem to do: pick our 'favorite' header for 'size_t'
> and use it consistently.

In general, by the time I need size_t, I've already used something else that
needs a "size_t header", so it's not an issue. Occasionally, you will see a
<stddef.h> in my code - this documents the rare occasions where I needed
size_t /first/. :-)

-- 
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton