[C] 改变数据段空间位置 →→→→→进入此内容的聊天室

来自 , 2020-09-14, 写在 C, 查看 105 次.
URL http://www.code666.cn/view/80537a94
  1. #include <stdio.h>
  2. #include <alloc.h>
  3.  
  4. int main(void)
  5. {
  6.    printf("Changing allocation with sbrk()\n");
  7.    printf("Before sbrk() call: %lu bytes free\n",
  8.    (unsigned long) coreleft());
  9.    sbrk(1000);
  10.    printf(" After sbrk() call: %lu bytes free\n",
  11.    (unsigned long) coreleft());
  12.    return 0;
  13. }
  14.  

回复 "改变数据段空间位置"

这儿你可以回复上面这条便签

captcha