Re: [hackers-il] Malloc Checking [was Re: Re: Another Interesting Case Study: Permutations of a range of characters ]
- On Wed, 16 Jan 2002, Adi Stav wrote:
> Also, you can try to limit the number of malloc()s in your code. It'swhats'cha talkin' about, willis? from alloca's man page:
> not alwaysfeasible, but I find that on-stack buffers, inline
> structs, and alloca() (which cannot fail) are often useful.
The alloca function returns a pointer to the beginning of
the allocated space. If the allocation failed, a NULL
pointer is returned.
ofcoruse it can fail - what if allocating space on stack requires mapping
an unmapped page, and thre's no more memory overall on the system for
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
- Shlomi and others who offered solutions for listing
character string permutations in different languages, and those who
amused themselves following that thread, might find
interesting. I just found it catching up on comp.lang.lisp. My
understanding is that the site is no longer actively maintained.
Check out the useful links list at the bottom. Perl lovers will
amusing, I guess.
Oleg Goldshmidt | ogoldshmidt@...
If it aint't broken it hasn't got enough features yet.