Re: Header include order
E. Robert Tisdale wrote:
[color=blue]
> The standard does *not* specify
> whether size_t is defined in stdlib.h itself
> or in another header file included by stdlib.h
> so the standard is *irrelevant* to the question.[/color]
On the contrary - since the standard doesn't specify it, we should not write
code that relies on it.
[color=blue]
> The only thing that may be relevant
> is whether or not *any* implementation of the standard
> actually defines size_t in stdlib.h itself.[/color]
No, /that/ is entirely irrelevant.
--
Richard Heathfield : binary@eton.pow ernet.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
E. Robert Tisdale wrote:
[color=blue]
> The standard does *not* specify
> whether size_t is defined in stdlib.h itself
> or in another header file included by stdlib.h
> so the standard is *irrelevant* to the question.[/color]
On the contrary - since the standard doesn't specify it, we should not write
code that relies on it.
[color=blue]
> The only thing that may be relevant
> is whether or not *any* implementation of the standard
> actually defines size_t in stdlib.h itself.[/color]
No, /that/ is entirely irrelevant.
--
Richard Heathfield : binary@eton.pow ernet.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
Comment