FNALLOC 宏 (fdi.h)

FNALLOC 提供應用程式定義回呼函式的宣告,以在 FDI 內容中配置記憶體。

語法

void FNALLOC(
   fn
);

參數

fn

要配置的位元組數目。

傳回值

備註

函式接受類似 malloc 的參數。

範例

FNALLOC(fnMemAlloc)
{
    return malloc(cb);
}

規格需求

需求
目標平台 Windows
標頭 fdi.h

另請參閱

FNFree