/* sbrk and brk example */ #include #include #include int main(int argc, char ** argv) { int *curr_brk, *tmp_brk = NULL; int num,i; if(argc >1) { num=atoi(argv[1]);} printf("Welcome to sbrk example:%d num %d\n", getpid(),num); for(i=0;i