Keil Logo Arm Logo

_sys_write()

_sys_write()

Defined in rt_sys.h, this function writes the contents of a buffer to a file previously opened with _sys_open().

Show/hideSyntax

int _sys_write(FILEHANDLE fh, 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.

Show/hideReturns

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.

Show/hideSee also

Reference

Using ARM C and C++ Libraries and Floating-Point Support:

Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0589B
Non-ConfidentialID062912

Keil logo

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.