intbrk(void*end_data_segment);// return 0 on success or -1 on error
void*sbrk(intptr_tincrement);// return previous progrom break on success, or (void *) -1 on error
$./malloc_and_sbrk 50 10240
Initial program break: 0x56289c0f8000
Allocating 50*10240 bytes
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c0f8000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c11b000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c13c000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
Program break is now: 0x56289c15f000
After free(), program break is: 0x56289c15f000
re malloc, program break is: 0x56289c15f000