riot_sys::bindgen

Function shell_parse_file

Source
pub unsafe extern "C" fn shell_parse_file(
    commands: *const shell_command_t,
    filename: *const c_char,
    line_nr: *mut c_uint,
) -> c_int
Expand description

@brief Read shell commands from a file and run them.

@note This requires the vfs module.

@param[in] commands ptr to array of command structs @param[in] filename file to read shell commands from @param[out] line_nr line on which an error occurred, may be NULL

@returns 0 if all commands were executed successful error return of failed command otherwise