openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libmount/src/optstr.c
int mnt_optstr_remove_option(char** optstr, const char* name)
{
    struct libmnt_optloc ol;
    int rc;

    if (!optstr || !name)
        return -EINVAL;

    mnt_init_optloc(&ol);

    rc = mnt_optstr_locate_option(*optstr, name, &ol);
    if (rc != 0)
        return rc;

    mnt_optstr_remove_option_at(optstr, ol.begin, ol.end);
    return 0;
}
/**
 * mnt_optstr_remove_option:
 * @optstr: string with a comma separated list of options
 * @name: requested option name
 *
 * Returns: 0 on success, 1 when not found the @name or negative number in case
 * of error.
 */
@optstr: string with a comma separated list of options
@name: requested option name

0 on success, 1 when not found the @name or negative number in case
of error.
@optstr : string with a comma separated list of options @name : requested option name 0 on success 1 when not found the @name or negative number in case of error .
int mnt_optstr_remove_option(char** optstr, const char* name)
{
    struct libmnt_optloc ol;
    int rc;
    if (!optstr || !name)
        return -EINVAL;
    mnt_init_optloc(&ol);
    rc = mnt_optstr_locate_option(*optstr, name, &ol);
    if (rc != 0)
        return rc;
    mnt_optstr_remove_option_at(optstr, ol.begin, ol.end);
    return 0;
}
int mnt_optstr_remove_option ( char * * optstr , const char * name ) { struct libmnt_optloc ol ; int rc ; if ( ! optstr || ! name ) return - EINVAL ; mnt_init_optloc ( & ol ) ; rc = mnt_optstr_locate_option ( * optstr , name , & ol ) ; if ( rc != 0 ) return rc ; mnt_optstr_remove_option_at ( optstr , ol . begin , ol . end ) ; return 0 ; }
mnt_optstr_remove_option:
 @optstr: string with a comma separated list of options
 @name: requested option name
mnt_optstr_remove_option : @optstr : string with a comma separated list of options @name : requested option name