Re: malloc without stdlib.h
- From: Francine.Neary@xxxxxxxxxxxxxx
- Date: Fri, 08 Jun 2007 23:13:38 -0000
On Jun 8, 11:58 pm, Joe Wright <joewwri...@xxxxxxxxxxx> wrote:
I wonder if you are missing the difference between 'declare' and
'define' in terms of headers. A header provides the compiler with
information about things. These bits of information are 'declarations'
and do not take up memory. In stdlib.h we find something like..
void *malloc(size_t);
This is a declaration and in fact a prototype. It is not a definition.
That's right. But the whole point of the preceding discussion was:
could an implementation put a definition (*not* just a declaration) of
malloc in stdlib.h?
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
.
- References:
- malloc without stdlib.h
- From: Anton Dec
- Re: malloc without stdlib.h
- From: Jack Klein
- Re: malloc without stdlib.h
- From: Army1987
- Re: malloc without stdlib.h
- From: Keith Thompson
- Re: malloc without stdlib.h
- From: Francine . Neary
- Re: malloc without stdlib.h
- From: Joe Wright
- malloc without stdlib.h
- Prev by Date: Re: How many levels of pointers can you have?
- Next by Date: Re: Program crashes when running it outside dev environment
- Previous by thread: Re: malloc without stdlib.h
- Next by thread: Re: malloc without stdlib.h
- Index(es):
Relevant Pages
|