void list_users(const User *curr) {

    // loop through linked list
    while (curr != NULL) {
        printf("%s\n", curr->name);
        curr = curr->next;
    }
}
loop through the users linked list and print each user's name attribute