This is retarded i have no idea why this is happening.
and the programs segfaults on the printf. the size of threadId is equal to integer size. threadId is a pointer.Code:if(active->ptr->threadId == NULL) printf("null actve\n"); else printf("not null\n") printf("id: %d\n", (int)(*(active->ptr->threadId)));
by the way it always prints not null.