/* hwconfig_arg_cmp_f - compare hwconfig option's argument @opt: a string representing an option  */
int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf)
/* hwconfig_arg_cmp_f - compare hwconfig option's argument @opt: a string representing an option  */
int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf)
{
	const char *argstr;
	size_t arglen;
	argstr = hwconfig_arg_f(opt, &arglen, buf);
	if (!argstr || arglen != strlen(arg))
		return 0;
	return !strncmp(argstr, arg, arglen);
}