SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe I am missing something here, but did you allocate any memory for that PString before you accessed it?
PString * initializeString() { PString *str; str = (PString *) malloc(sizeof(PString)); str->length = &length; return str; }