请输入您要查询的百科知识:

 

词条 allocmem
释义

§ 函数名

allocmem

§ 功能

分配DOS存储段

§ 用法

int allocmem(unsigned size, unsigned *seg);

§ 程序实例

#include <dos.h>

#include <alloc.h>

#include <stdio.h>

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);

else

printf("Failed: maximum number of paragraphs available is %u\",

stat);

return 0;

}

随便看

 

百科全书收录594082条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/22 5:39:25