panda_parse_string_opt

Function panda_parse_string_opt 

Source
pub unsafe extern "C" fn panda_parse_string_opt(
    args: *mut panda_arg_list,
    argname: *const i8,
    defval: *const i8,
    help: *const i8,
) -> *const i8
Expand description

panda_parse_string_opt() - Look for optional string value corresponding to this plugin arg. @args: The previously parsed panda_arg_list. @argname: The name of the argument in args. @defval: A default value. @help: Help text. * Look through the arguments in args, and if any have name argname, return the associated string value. If the arg is not found, the default will be returned.

Return: a string value.