mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
13 lines
197 B
C
13 lines
197 B
C
#include <unistd.h>
|
|
|
|
volatile void *ptr;
|
|
|
|
/* The default size of the brk segment is 8 MB.
|
|
Request more than that in a single request. */
|
|
int main()
|
|
{
|
|
ptr = sbrk(9*1024*1024);
|
|
|
|
return 0;
|
|
}
|