Qt Code:
  1. char delims = ',';
  2. char* result = NULL;
  3. result = strtok( _buffer, delims );
  4. vector<double> v;
  5. while (result != NULL) { //and !endOfLine
  6. result = strtok( NULL, delims );
  7. v.push_back( atof(result) );
  8. }
  9. InsertInVectorOfVector(v)
To copy to clipboard, switch view to plain text mode 
Hello,
I have to read the _buffer into a a vector; problem is that I need also to check when I step over the '\r\n', because in this case I need to insert 'v' in a vector of vector; Is there a way to do that control using strtok() ?

Thanks,