if (curr1 == NULL){
        curr1 = user2;
        printf("%s", ((*(curr1->friends)[0]).name));
    }
    else{
        while (curr1 != NULL){
        
        if (curr1->next == NULL){
            break;
        }
        curr1 = curr1->next;
        }

        curr1->next = user2;
    }

trying to insert user2 at tail of linked list pointed to by curr1