am i adding second user to the first user's friend list and first user to the second user's friend list ?
int make_friends(const char *name1, const char *name2, User *head) {
    int error;

    // check if the two names are the same 
    if (strcmp(name1, name2) == 0){
        error = 3;
    }
   
    User *first_user = find_user(name1, head);
    User *second_user = find_user(name2, head);
    
    // check if users exist or not
    if (first_user == NULL || second_user == NULL){
        return 4;
        }

    // check if either user's have 10 friends or not
    if ((first_user->friends[9] != NULL) && (second_user->friends[9] != NULL)){
        int already_friends = 0;
             for (int i = 0; i < 9; i++){
                // check if the second user is already friends with first user and that it's not NULL
                if((strcmp(first_user->friends[i]->name, second_user->name)==0) && (first_user->friends[i] != NULL)){
                    if (error < 1){
                        error = 1;
                        already_friends = 1;
                    } 
                }
                if ((already_friends == 0) && (first_user->friends[i] == NULL)){
                    int stop = 0;
                    if (stop == 0){
                        first_user->friends[i] = second_user;
                        stop = 1;
                        error = 0;
                    }
                } 
            }       
        
            for (int j = 0; j < 9; j++){
                int already_friends1 = 0;
                if((strcmp(second_user->friends[j]->name, first_user->name) == 0) && second_user->friends[j] != NULL){
                    if (error < 1){
                        error = 1;
                        already_friends1 = 1;
                    } 
                }
                else{
                    // add to each friend's lst
                    if ((already_friends1 == 0) && (second_user->friends[j] == NULL)){
                    int stop1 = 0;
                    if (stop1 == 0){
                        second_user->friends[j] = first_user;
                        stop1 = 1;
                        error = 0;
                    }            
                }               
            }
            }
    }
    else {
            if (error < 2){
                error = 2;
            }
        }

    fprintf(stdout, "%s\n", first_user->friends[0]->name);
    fprintf(stdout, "%s\n", second_user->friends[0]->name);

    if (error != 0){
        return error;
    }
    return 0;
}
