![]() |
![]() |
![]() |
![]() |
NULL is OK, both for passing and for returning.
Generics and defining elements of containers and arrays.
Out parameter, where caller must allocate storage.
The caller owns the data container, but not the data inside it.
The caller owns the data, and is responsible for free it.