int create_user(const char *name, User **user_ptr_add) {
        if (strlen(name) > 31){
                return 2;
        }

        else{
                User *p = malloc(sizeof(User));
                strncpy(p->name, name, 31);
                p->name[31] = '\0';
                User curr = **user_ptr_add; // seg fault here
                printf("%s\n", curr.name);
                while (curr.next != NULL){
                        printf("made inside while loop\n");
                        if (strcmp(curr.name, name) == 0){
                                return 1;
                        }
                        curr = *(curr.next);
                }
                curr.next = p;
                return 0;
        }
    return -1;
}
fix segmentation fault
