Re: obj function hello()
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sat, 10 Feb 2007 13:41:50 -0500
gert wrote:
rpbg...@xxxxxxxxx (Roland Pibinger) wrote:
Why malloc? Why a memory leak?
Can you collaborated on the memory leak part please ?
How would you do it ?
void leak(size_t howmuch) {
malloc(howmuch);
}
will do it nicely, provided you #include <stdlib.h>
--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
.
- 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
- Re: obj function hello()
- From: gert
- obj function hello()
- Prev by Date: Re: history+readline+ncurses
- Next by Date: Re: obj function hello()
- Previous by thread: Re: obj function hello()
- Next by thread: Re: obj function hello()
- Index(es):
Relevant Pages
|