I'm still fairly new to C, so I was wondering what would be the fastest way to get a char pointer pointing and ending between 2 different char delimiters?

For example:
text text (text I need)

I need a char * to "text I need"

Loop through the characters until you find your first delimiter, save the index of that character, loop through the characters from the first index, and when you find the second delimiter, save the index of that too. Then pull out the characters between the two indicies.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.