another C++ equivalent for the followingtwo lines of code
<p>Sorry for such a vague title.
Basically, I am trying to hack a function to suit my needs. But lately I have been working a lot on python and my c++ is bit rusty.</p>

<p>So earlier my function took a </p>

<pre><code> int func(FILE *f)  
 { .....
   if (fgets(line, MM_MAX_LINE_LENGTH, f) == NULL) 
    return MM_PREMATURE_EOF;

if (sscanf(line, "%s %s %s %s %s", banner, mtx, crd, data_type, 
    storage_scheme) != 5)
    return MM_PREMATURE_EOF;

 }
</code></pre>

<p>now instead of this I am directly inputing the string data</p>

<pre><code> int func(std::string *data)  
   { .....
   // how should I modify this if statment..I want to parse the same file
   // but instead it is in form of one giant string

 }
</code></pre>

<p>Thanks</p>
