what is uninitialized
int delete(User *delete_target){
    // remove from other friends
    int i;
    int j;
    i = 0;
    while((i < MAX_FRIENDS) && (delete_target->friends[i] != NULL)){
        User *friend = delete_target->friends[i];
        j = 0;
        while ((j < MAX_FRIENDS) && (strcmp(friend->friends[j]->name, delete_target->name) != 0))
        {
            j = j + 1;
        }
        if (j == MAX_FRIENDS)
        {
            perror("mutrual friendship status not maintained");
            return 1;
        }
        
        for (int k = j + 1 ; k < MAX_FRIENDS; k++)
        {
            friend->friends[k-1] = friend->friends[k];
        }
        friend->friends[MAX_FRIENDS-1] = NULL;
        i = i + 1;
    }
    // free posts user received
    Post *curr_post = delete_target->first_post;
    Post *curr_pt;
    while(curr_post != NULL){
        curr_pt = curr_post;
        curr_post = curr_post->next;
        free(curr_pt->contents);
        free(curr_pt->date);
        free(curr_pt);
    }
    // free user
    free(delete_target);
    return 0;
}