I have a function which accepts a pointer to a struct and sets a member of that struct to a specific value. However, after that assignment code is executed, and my program exits without showing any errors.
void swn_addClassToInstance(struct instanceR *instance)
{
instance->classCount = 0;
//nothing below here will run
}
I'm new to C, and any help would be appreciated.