[Solved] Run-time error storing pointer character from strtok after multiple calls
Remember that strtok modifies the buffer. The caller to your functions would have to pass a temporary buffer that has been copied from the original before each call. In other words, the call to ModifiedStringSize trashes inputString so that when you call ManipulateString, the updated value for inputString is [effectively] garbage. The usual here is … Read more