static int usb_host_read_file(char *line, size_t line_size, const char *device_file, const char *device_name)

{

    FILE *f;

    int ret = 0;

    char filename[PATH_MAX];



    snprintf(filename, PATH_MAX, device_file, device_name);

    f = fopen(filename, "r");

    if (f) {

        fgets(line, line_size, f);

        fclose(f);

        ret = 1;

    } else {

        term_printf("husb: could not open %s\n", filename);

    }



    return ret;

}

static int usb_host_read_file(char *line, size_t line_size, const char *device_file, const char *device_name)

{

    FILE *f;

    int ret = 0;

    char filename[PATH_MAX];



    snprintf(filename, PATH_MAX, device_file, device_name);

    f = fopen(filename, "r");

    if (f) {

        fgets(line, line_size, f);

        fclose(f);

        ret = 1;

    } else {

        term_printf("husb: could not open %s\n", filename);

    }



    return ret;

}

static int FUNC_0(char *VAR_0, size_t VAR_1, const char *VAR_2, const char *VAR_3)

{

    FILE *f;

    int VAR_4 = 0;

    char VAR_5[PATH_MAX];



    snprintf(VAR_5, PATH_MAX, VAR_2, VAR_3);

    f = fopen(VAR_5, "r");

    if (f) {

        fgets(VAR_0, VAR_1, f);

        fclose(f);

        VAR_4 = 1;

    } else {

        term_printf("husb: could not open %s\n", VAR_5);

    }



    return VAR_4;

}

static int FUNC_0(char *VAR_0, size_t VAR_1, const char *VAR_2, const char *VAR_3)
{ FILE *f; int VAR_4 = 0; char VAR_5[PATH_MAX]; snprintf(VAR_5, PATH_MAX, VAR_2, VAR_3); f = fopen(VAR_5, "r"); if (f) { fgets(VAR_0, VAR_1, f); fclose(f); VAR_4 = 1; } else { term_printf("husb: could not open %s\n", VAR_5); } return VAR_4; }