fWrite

fun CPointer<FILE>.fWrite(buf: ByteArray, offset: Int = 0, len: Int = buf.size): Int(source)

Writes buf to FILE

When return value is:

  • Negative: error, check errno

  • 0: wrote no data (break)

  • Positive: Amount of data from buf written.