void list_users(const User *curr) {
        User *temp;
        temp = (User *) curr;
        while (temp != NULL){
                printf("%s\n", temp->name);
                temp = temp->next;
        }
}

Print the usernames of all users in the list starting at curr.
 * Names should be printed to standard output, one per line.