top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In C how to make a function equivalent to malloc without using any other inbuilt function?

+2 votes
592 views
In C how to make a function equivalent to malloc without using any other inbuilt function?
posted Dec 18, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
may be you can use array

1 Answer

0 votes

brk and sbrk are basic memory management system calls used in Unix and Unix-like operating systems to control the amount of memory allocated to the data segment of the process.
These functions are typically called from a higher-level memory management library function such as malloc. In the original Unix system, brk and sbrk were the only ways in which applications could acquire additional data space; later versions allowed this to also be done using the mmap call.

answer Dec 25, 2015 by Amit Kumar Pandey
Similar Questions
+1 vote

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function in C programming?

+4 votes

Is there any alternate function is available?

...