C语言库函数allocmem

C语言库函数allocmem函数名:allocmem功 能:分配DOS存储段函数与形参类型:int allocmem(unsigned size, unsigned *seg);程序例:#include #include #include int main(void){unsigned int size, segp;int stat; size = 64; /* (64 x 16) = 1024 bytes */stat = allocmem(size, &segp);if (stat == -1)printf("Allocated memory at segment: %x ", segp);elseprintf("Failed: maximum number of paragraphs available is %u ",stat); return 0;}

以上内容由大学时代综合整理自互联网,实际情况请以官方资料为准。

相关