riot_sys

Function vfs_write

Source
pub unsafe extern "C" fn vfs_write(
    fd: c_int,
    src: *const c_void,
    count: size_t,
) -> ssize_t
Expand description

@brief Write bytes to an open file

@param[in] fd fd number obtained from vfs_open @param[in] src pointer to source buffer @param[in] count maximum number of bytes to write

@return number of bytes written on success @return <0 on error

For simple cases of only a single write to a file, the @ref vfs_file_from_buffer function can be used.