I'm just mimicking Printf from the stdlib, which returns the number of bytes written and an error. It's also fairly common to ignore the error of Printf, so I think this passes the consistency test.