You copied the Doc URL to your clipboard.
_sys_write()
Defined in rt_sys.h, the _sys_write()
function writes the contents of a buffer to a file previously opened with _sys_open()
.
Syntax
int
_sys_write(FILEHANDLEfh
,const unsigned char
*buf
,unsigned
len
,int
mode
);
Note
The mode parameter is here for historical reasons. It contains nothing useful and must be ignored.
Returns
The return value is either:
A positive number representing the number of characters not written (so any nonzero return value denotes a failure of some sort).
negative number indicating an error.