Keil Logo


4.48 _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().


int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode);


The mode parameter is here for historical reasons. It contains nothing useful and must be ignored.


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).
  • A negative number indicating an error.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.