User *find_user(const char *name, const User *head) {
    User *user_head = (User *) head;
    if(user_head == NULL){
        return NULL;
    } else {
        User curr = user_head[0];
        while(curr.next != NULL){
            if(strcmp(curr.name, name) == 0){
                return curr;
            } else {
                curr = *(curr.next);
            }
        }
        if(strcmp(curr.name, name) == 0){
            return curr;
        }
        
    }
    return NULL;
}
i need to return a pointer to the user (the one in curr)