/**
 * dev_read_hex_int - read an hex 'int' value from an MTD device sysfs file.
 * @patt: file pattern to read from
 * @dev_num: MTD device number
 * @value: the result is stored here
 *
 * This function returns %0 in case of success and %-1 in case of failure.
 */
static int dev_read_hex_int(const char *patt, int dev_num, int *value)
{
	char file[strlen(patt) + 50];

	sprintf(file, patt, dev_num);
	return read_hex_int(file, value);
}
int strsc_int(str_scanner *scanner){
    int val = read_hex_int(scanner->str + scanner->read);
    scanner->read += 8;
    
    return val;
}