C语言函数—scanf

函数名

sbrk

功 能

改变数据段空间位置

用 法

char *sbrk(int incr);

程序例

#include <stdio.h> 
#include <alloc.h> 

int main(void) 
{ 
   printf("Changing allocation with sbrk()n"); 
   printf("Before sbrk() call: %lu bytes freen", 
   (unsigned long) coreleft()); 
   sbrk(1000); 
   printf(" After sbrk() call: %lu bytes freen", 
   (unsigned long) coreleft()); 
   return 0; 
} 
  
  

如果引用本站的原创文章,请注明原文链接:,本站保留追究责任的权利!