리눅스에서 스택에 메모리 할당할 때..

bizzare의 이미지

윈도우에서는
특정크기만큼의 메모리를 스택에 만들고 싶을 때
_alloc 이라는 함수를 쓰는데요..

리눅스에는 스택에 메모리 할당해주는 함수가 없는지요.

man 으로 검색해봤더니 안보이더군요.

혹시 방법을 아시면 알려주세요 T_T

singlet의 이미지

man alloca

Quote:
BUGS
The alloca function is machine and compiler dependent. On many systems its implementation is buggy. Its use is discouraged.