Definition: |
include cffi.e atom pStruct = allocate_struct(integer idStruct) |
Description: |
allocate memory for a structure previously defined using define_struct() .
|
Comments: |
The allocated memory is automatically zero-filled.
Remember to free() the result once it is no longer needed.
|
Example: |
include cffi.e integer idMBP = define_struct(...) atom pMBP = allocate_struct(idMBP) ... free(pMBP) |
See Also: | define_struct, free |