Hi all,
Quick one. I'm trying to match the following string and fetch everything until the three point. For example
And my sscaf function looks like thisCode:Text which need to be read fdsafsdfdsa... fsdafsdaf. fsdafasdf... fsdafasd..
But this donst work. It gets everything. I want to fetch string with end with '...'. So the string which i would be expecting is the 1st and 3rd row. But not the 2nd or 3rd since they end of '.' or '..' dots.Code:if( sscanf( str, "%[^...]...", str1 ) == 1 ) printf( str1 )
The key here is to write a format specifier which tell to read everything until you see '...' but not just '.'. And tried all possible ways and couldn't work around with this. Is there anything i'm missing?
thanks guys
ssharish