How to prevent return discards ‘const’ qualifier from pointer target type
User *find_user(const char *name, const User *head) {

    while(head != NULL){

        if(strcmp(head->name, name) == 0){

            return head;
        }
    }
    return NULL;
}