Closed frank-deng closed 6 years ago
Thanks!
I think sscan's filter "%2d:%2d:%2d" is better.
And if input is illegal format string, check sscan's return value is EOF, then return 0;
Thank you for your suggestion.
It seems that under Ubuntu 16.04, sscanf(str, "%2d:%2d:%2d", &m, &s, &f)
will return 3 when the format of string is legal, with other return values when string is illegal.
Yeah. Nice work!
sscanf()
to parse time information of CUE file, so as to correctly handle tracks with time information like below instead of generating a zero-length song: