3 ms·
One reasonably common pattern is to have the return value indicate success / error, and you pass in a pointer to the value which will be mutated if successful.
by QuercusMax 5mo ago
One reasonably common pattern is to have the return value indicate success / error, and you pass in a pointer to the value which will be mutated if successful.
- jamesfinlayson 5mo agoYep, lots of the Windows API does it this way.