It seems to have no impact on the functionality of sb开发者_运维问答rk, but in sbrk()\'s documentation it says that it requires an intptr_t parameter.
This question already has answers here: 开发者_Go百科How do malloc() and free() work? (13 answers)
I have a custom allocator function which uses sbrk() to obtain memory. How do I release this m开发者_高级运维emory when it\'s no longer needed?
the following is a very very simple version of malloc() and seems to allocate some space to me, but apart from the fact that there is no free() and I don\'t check if I\'ve overrun the allocated space,