Reputation: 3500
Is alloca part of the C++ standard?
Upvotes: 20
Views: 6930
Reputation: 220981
Not only is it not part of the C++ standard, it is not part of any standard. It's not part of C nor is it part of POSIX. Furthermore, allow me to quote from the Linux man page for alloca(3)
:
The alloca() function is machine and compiler dependent. On many systems its implementation is buggy. Its use is discouraged.
(emphasis added)
Upvotes: 24