A question about \r\n in C...
I have a string that has several carriage returns line feeds in it. Of course a string ends in C when it is NULL terminated.
The pointer to the string I am working with is a const char *. I need to pull out the data between each \r\n. I can't use strtok() because the pointer is a const and strtok changes the string. I don't want to write a function that checks each byte for the \r\n sequence. Are there any other functions that would do this?
-Tristan
|