does this work
int check_friends(User *user1, User *user2) {
    int friends = 1;

    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (strcmp((user1->friends[i])->name, user2->name) == 0) {
                friends = 0;
                break;
        }
    }

    return friends;
}