K
kelvSYC
What is the best way to create functions that, based on some input,
return either structures or a null value if the structure cannot be
made?
The problem is that the structure has be created inside the function,
and I've heard that returning a pointer to a locally created structure
is unsafe.
return either structures or a null value if the structure cannot be
made?
The problem is that the structure has be created inside the function,
and I've heard that returning a pointer to a locally created structure
is unsafe.