Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is not a good idea. You're venturing in the unspecified/non-portable behavior territory.

https://pubs.opengroup.org/onlinepubs/7908799/xsh/brk.html

> The behaviour of brk() and sbrk() is unspecified if an application also uses any other memory functions (such as malloc(), mmap(), free()). Other functions may use these other memory functions silently.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: