Re: obj function hello()
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Sat, 10 Feb 2007 18:55:17 +0000
On Sat, 10 Feb 2007 11:55:04 GMT, in comp.lang.c , rpbg123@xxxxxxxxx
(Roland Pibinger) wrote:
On Fri, 09 Feb 2007 14:43:45 +1300, Ian Collins wrote:
Ian Collins wrote:
int main(void) {Oops, malloc( sizeof *obj );
Obj* obj = malloc( sizeof obj );
Why malloc?
In C, what else would you use to allocate memory than one of the
*alloc family?
Why a memory leak?
What memory leak?
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.
- Follow-Ups:
- Re: obj function hello()
- From: Roland Pibinger
- Re: obj function hello()
- References:
- obj function hello()
- From: gert
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: gert
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: gert
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: Roland Pibinger
- obj function hello()
- Prev by Date: Re: obj function hello()
- Next by Date: Re: undefined reference
- Previous by thread: Re: obj function hello()
- Next by thread: Re: obj function hello()
- Index(es):
Relevant Pages
|