[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
program GetMemFunctionDemo; var p: Pointer; begin p := GetMem (1024) end. |
The second parameter to `FreeMem' is ignored by GNU Pascal and may be omitted. Memory blocks are always freed with the same size they were allocated with.
Remark: Extended Pascal Schema types provide a cleaner approach to most of the applications of `GetMem' and `FreeMem'.