/*
 * Return a pointer to the user with this name in
 * the list starting with head. Return NULL if no such user exists.
 *
 * NOTE: You'll likely need to cast a (const User *) to a (User *)
 * to satisfy the prototype without warnings.
 */
User *find_user(const char *name, const User *head) {
    // start at the first user object in the linked list
    const User *current = head;
    // check if the name of every user is this name
    while(current->next != NULL){
        // if it is return a pointer to the user
        if (strcmp(current->name, name) == 0){
            // User *pointer_to_match = current;
            // return pointer_to_match;
            return current;
        }
    }
    // if that never happens, return NULL
    return NULL;
}
cast a (const User *) to a (User *) to satisfy prototype without warnings