- for (ptr = extensions; *ptr;)
- {
- /*
- * Is it the current extension?
- */
- if ( strncmp ( extension, extensions, len ) == 0 )
- return 1 ;
-
- /*
- * No, go find the next extension. They are separated from each other by one or more blank spaces.
- */
- ptr = strchr ( ptr, ' ' ) ;
-
- /*
- * If we ran off the end of the "extensions" character string, we didn't find it. Return failure.
- */
- if ( !ptr ) return 0 ;