// delete deletee from linked list of users
    // case a: deletee is head of linked list
    if (prev == NULL) {
        curr = curr->next;
    } else { // case b: deletee is not head of linked list
        prev->next = curr->next;
    }
    // deallocate curr
    free(curr);
delete the node curr from a linked list