Is there any issues?
int check_friends(User *user1, User *user2){
    for(int i = 0; i < 10; i++){
        if(user1->friends[i]){
            if(user1->friends[i]->name == user2->name){
                return 0;
            }
        }
    }
    return 1;
}