Why is the use of alloca() not considered good practice?
The answer is right there in the man page (at least on Linux): RETURN VALUE The alloca() function returns a pointer to the beginning of the allocated space. If the allocation causes stack overflow, program behaviour is undefined. Which isn’t to say it should never be used. One of the OSS projects I work on … Read more