Function riot_sys::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