Whenever I try to use this code to get a segment of a string, I get an Access Violation. ptrC is a pointer to a position in a char array, and it is within the declared bounds of the array.
Code:temp = *ptrC; *ptrC = '\0'; //do stuff... *ptrC = temp;