Tiny strerror() implementation. More...
Tiny strerror() implementation.
Select module tiny_strerror in order to use it.
tiny_strerror_as_strerror will replace all calls to strerror() by calls to tiny_strerror(), which may safe a bit of ROM.tiny_strerror_minimal will just print the error code value. This will save ~1k of ROM, but won't provide much more information.tiny_strerror_minimal is not thread-safe. Files | |
| file | tiny_strerror.h |
| Tiny strerror() implementation. | |
Functions | |
| const char * | tiny_strerror (int errnum) |
| Get the name of an errno macro. More... | |
| const char* tiny_strerror | ( | int | errnum | ) |
Get the name of an errno macro.
| [in] | errnum | Error code to get the name of |
Example:
errnum | <tt>"OK"</tt> | If errnum is 0 |
| <tt>"unknown"</tt> | If errnum is not matching any POSIX errno constant |
| <tt>"-unknown"</tt> | If errnum is negative not matching any negative POSIX errno constant |