4 ms·
At this point of the lifetime C-language, hoping for the commonly accepted terminology to change, is probably futile. Anyway, for out parameters, the common con
by arka2147483647 6y ago
At this point of the lifetime C-language, hoping for the commonly accepted terminology to change, is probably futile. Anyway, for out parameters, the common convention is:
Caller provides one object for output:
void callee(Obj *obj);
Caller provides an array for output:
void callee(Obj *obj, size_t obj_size);
Caller provides an pointer, to which callee allocates a new object:
void callee(Obj **obj)