bradleycha / cliauth

Minimal cross-platform terminal authenticator app.
GNU General Public License v3.0
0 stars 0 forks source link

Fallibe functions should never take a pointer argument for the output #17

Open bradleycha opened 2 months ago

bradleycha commented 2 months ago

Functions which return an error result should never take a pointer to the output data and write it upon success, as this is clunky and error-prone. A struct which contains an error tag and payload should be used instead, such as CliAuthIoReadResult.