leo25 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Consider separate functions / fields to signal errors in Print write(), print(), println(). #598

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, we've added ssize_t return types from write(), print(), and 
println().  It returns a negative number on error or the number of bytes 
written.  Instead, we might want to return just the number of bytes written, 
and use a separate function to get error if any.  For example, 
Print::clearWriteError() and Print::writeError() or similar.  

Original issue reported on code.google.com by dmel...@gmail.com on 26 Aug 2011 at 6:20

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/b73cf39d9480f44cf55333bd0b544c9cb26330
d6

Original comment by dmel...@gmail.com on 26 Aug 2011 at 8:10