-/* Gets the extension index in FILENAME. Returns 0 if fails to
- find an extension. */
-static int
-get_extension_index (const char *filename)
-{
- int len;
-
- len = strlen (filename);
-
- if (filename[len-- - 1] == '.')
- return (0);
-
- while ((len > 0) && (filename[len - 1] != '.'))
- if (filename[len - 1] == '/')
- return (0);
- else
- len--;
-
- return (len - 1);
-}
-