I am using strtok() function to get the next token available from a string.
I am reding a file using memory mapping and storing the data in a char* buffer. from this buffer I am getting line by line using strtok() function by putting the token delimiters as "\r\n". I am having an error file that is not ended with the above delimeters as it is error file. strtok is crashing with this file at the last statement.
Is there any problem with strtok()? or with my code? Can any one have any idea? If so what is the solution for this?
I am sending the file as an attachment. If I try to change the contents and save it is working fine. So use this file without altering.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.