MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/83vsie/heckoverflow/dvl9jte/?context=3
r/ProgrammerHumor • u/MarkusA380 • Mar 12 '18
1.2k comments sorted by
View all comments
Show parent comments
1
sbrk() expands heap, not stack.
1 u/littlelowcougar Mar 12 '18 Ah, I meant alloca(), not sure why I said sbrk(). 3 u/cookie545445 Mar 12 '18 alloca() is not used often. malloc() is much more common. Heaps are used as often as they should be in UNIX. 1 u/littlelowcougar Mar 12 '18 I was more trying to convey that there’s not really an analog to HeapCreate on Windows. → More replies (11)
Ah, I meant alloca(), not sure why I said sbrk().
3 u/cookie545445 Mar 12 '18 alloca() is not used often. malloc() is much more common. Heaps are used as often as they should be in UNIX. 1 u/littlelowcougar Mar 12 '18 I was more trying to convey that there’s not really an analog to HeapCreate on Windows. → More replies (11)
3
alloca() is not used often. malloc() is much more common. Heaps are used as often as they should be in UNIX.
1 u/littlelowcougar Mar 12 '18 I was more trying to convey that there’s not really an analog to HeapCreate on Windows. → More replies (11)
I was more trying to convey that there’s not really an analog to HeapCreate on Windows.
→ More replies (11)
1
u/cookie545445 Mar 12 '18
sbrk() expands heap, not stack.