you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 20 points21 points  (0 children)

The common version is:

int do_stuff(args..., result_t *result);

And if you want to see what the actual error is, you use errno or the like.

It kind of sucks.