will this code add a user to the end of the linked list
int create_user(const char *name, User **user_ptr_add) {
    if (strlen(name) >=  MAX_NAME) {
        return 2;
    }
    User *curr = *user_ptr_add;
    User *new_user = malloc(sizeof(User));
    strcpy(new_user->name, name);
    new_user->next = NULL;

    if (curr == NULL) {
        curr = new_user;
    }

    while (curr->next != NULL) {
        if (strcmp(name, curr->name) == 0) {
            return 1;
        }
        curr = curr->next;
    }

    curr->next = new_user;


    return 0;
}
