char* xread_file(const char *path) {
    FILE *fp;
    char *result;

    fp = fopen(path, "r");
    if (!fp)
        return NULL;

    result = xfread_file(fp);
    fclose(fp);

    return result;
}
char* xread_file(const char *path) {
    FILE *fp;
    char *result;

    fp = fopen(path, "r");
    if (!fp)
        return NULL;

    result = xfread_file(fp);
    fclose(fp);

    return result;
}