pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
- /* First try to match via full type string */
+ /* First try to match via full type string */
if (strcasecmp(name, fi.name) == 0)
return fi.format;
- /* Then, try to match via the full extension */
+ /* Then, try to match via the full extension */
if (strcasecmp(name, fi.extension) == 0)
return fi.format;
- /* Then, try to match via the start of the type string */
+ /* Then, try to match via the start of the type string */
if (strncasecmp(name, fi.name, strlen(name)) == 0)
return fi.format;
}