logoalt Hacker News

QuercusMaxyesterday at 4:05 PM1 replyview on HN

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.


Replies

jamesfinlaysontoday at 2:50 AM

Yep, lots of the Windows API does it this way.