一、sbrk
函数来源:TC2.0、Linux
#include <stdio.h> #include <alloc.h> int main(void) { printf("Changing allocation with sbrk()\n"); printf("Before sbrk() call: %lu bytes free\n", (unsigned long) coreleft()); sbrk(1000); printf(" After sbrk() call: %lu bytes free\n",(unsigned long) coreleft()); return 0; }
3、运行结果
sbrk and coreleft,布布扣,bubuko.com
原文:http://www.cnblogs.com/amanlikethis/p/3764600.html