<--libifp home |
|
End-users are responsible for allocating and deallocating this structure. However, its contents should be considered private and not directly accessible.
(This requirement---that users allocate memory themselves---helps make the library more flexible. For example, it could be used inside a kernel, where memory allocation failure is a headache. On the positive side, userland coders can declare their structures on the stack. Bad habit? Maybe. Does it matter? Perhaps not.)