User *new_user = (User*) malloc(sizeof(User));

// If user_ptr_add is empty, add the new user.
if (*user_ptr_add == NULL){
    *user_ptr_add = new_user;
    return 0;
}
    
*user_ptr_add is an empty linked list. Make it point to new_user;