I'm having trouble parsing a line with sscanf.
My line is:
1941 How Green Was My Valley; John Ford
and I want to separate it into a number, string, and another string. I tried:
if ( sscanf( buffer, "%d %41[^;] %51s", &pMovie->year, &pMovie->title,
&pMovie->director ) == 3 )
But the separation doesn't work the way I want it to.