for(int i=0; i<MAX_FRIENDS - 1; i++){
                if(strcmp(curr->friends[i]->name, name) == 0){   //deleted user is in the list.
                    curr->friends[MAX_FRIENDS - 1] = NULL; //Last element must be NULL after deletion.
                    int j = i;
                    for(int j; j < MAX_FRIENDS-1; j++){    
                        //from i(index with deleted user), shift over every element to the left  
                        curr->friends[j] = curr->friends[j + 1]; 
                    }
                }
            }
I want to iterate through elements up until a point. Then if I reach that point, I want to shift each element from that point onwards to the left.