/* Writes a number of bytes, at most 
If  */
_STD_BEGIN size_t __write(int handle, const unsigned char *buffer, size_t size)
/* Writes a number of bytes, at most 
If  */
_STD_BEGIN size_t __write(int handle, const unsigned char *buffer, size_t size)
{
	int n = 0;
	if (buffer == 0) {
		return 0;
	}
	if (handle != _LLIO_STDOUT && handle != _LLIO_STDERR) {
		return _LLIO_ERROR;
	}
	n = stdio_io_write((const uint8_t *)buffer, size);
	if (n < 0) {
		return _LLIO_ERROR;
	}
	return n;
}