Lines Matching defs:prefix
44 static int str_starts_with( const char *s, char *prefix );
87 path = fileurl + 5; /* skip past "file:" scheme prefix */
172 char *p, *url, *prefix ="file:";
182 if (( url = malloc( strlen( prefix ) + 3 * strlen( path ) + 1 )) == NULL ) {
186 strcpy( url, prefix );
187 p = url + strlen( prefix );
415 * Return a non-zero value if the string s begins with prefix and zero if not.
418 str_starts_with( const char *s, char *prefix )
422 if ( s == NULL || prefix == NULL ) {
426 prefix_len = strlen( prefix );
431 return( strncmp( s, prefix, prefix_len ) == 0 );