riot_sys

Function vfs_readline

Source
pub unsafe extern "C" fn vfs_readline(
    fd: c_int,
    dest: *mut c_char,
    count: size_t,
) -> ssize_t
Expand description

@brief Read a line from an open text file

Reads from a file until a \r or \n character is found.

@param[in] fd fd number obtained from vfs_open @param[out] dest destination buffer to hold the line @param[in] count maximum number of characters to read

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