Reputation: 24414
I can't see any alloca.h
equivalent in Visual C 2010
. How can one perform stack allocation in Visual C
on Windows? I miss the function alloca
.
Upvotes: 23
Views: 20875
Reputation: 5615
There's no alloca.h in windows. You should
#include <malloc.h>
instead. The alloca function is there
Upvotes: 3