On Thu, Sep 3, 2009 at 3:11 PM, Joe Pruett<[email protected]> wrote: >> There is a little known non-standard (but common) function in C called >> alloca that works for this sort of thing: >> http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_3.html#SEC45 >> >> I have no idea how old that documentation is, but it seems to describe it. > > alloca is still on the stack so it won't help his problem of blowing > through the stack limit.
My mistake. I thought by being a dynamic allocation of stack that it avoided the segfault. Googling a bit more I do see that you can have a stack overflow from alloca and the behavior is undefined. Bummer. Sorry for any confusion. Jason _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
