I have a string containg spaces and tags like:
<note label="description">sp|P02671|FIBA_HUMAN Fibrinogen alpha chain OS=Homo sapiens GN=FGA PE=1 SV=2</note>
I want to capture only the part after the description tag and before 'OS=' and was wondering if it makes sense to do with sscanf with a custom notation (see my current work in progress at bottom of page) or if it's better to use a second strstr to parse for OS.
Thanks in advance
-- Additional info --
if ( (p_str = (char*) strstr(buffer,"\"description\">")) ) {
sscanf(p_str+14,"%[^OS]",(file+teller)->description);
}
PS: %[^OS] breaks the string at the first occurance of a 'O', i would love to know how to enter a set of characters (if that's possible).