is there segmentation fault?
int print_user(const User *user){
    if (user == NULL){
        return 1;
    }
    FILE *profile = fopen(user->profile_pic, "rb");

    char string[1000] = "";

    while(fgets(string, sizeof(string), profile)){
        printf("%s\n", string);
    }


    return 0;
}
