Skip to content

cf_fs_write

Category: file
GitHub: cute_file_system.h


Writes bytes from a file opened in write mode.

size_t cf_fs_write(CF_File* file, const void* buffer, size_t size);
Parameters Description
CF_File The file.
buffer Pointer to a buffer of bytes.
size The size in bytes of buffer.

Remarks

The file must be opened in write mode with cf_fs_open_file_for_write. Returns the number of bytes written. Returns -1 on failure. Virtual File System.

CF_File
cf_fs_file_exists
cf_fs_read
cf_fs_size
cf_fs_eof
cf_fs_tell
cf_fs_seek