FileWriteAndClose
Description
Open path for write (truncating), write all of out, close. Two arities via MISRA_OVERLOAD:
FileWriteAndClose(path, container)–containerisBuf *
or Str *; writes its full length.
FileWriteAndClose(path, buf, n)– explicitvoid *buf
and u64 n byte count.
Success
Returns total bytes written; file is closed.
Failure
Returns -1; file is closed (or never opened).
Usage example (Cross-references)
Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on