FreeBSD/sys/fs/devfs/devfs_dir.c
/* Returns 1 if the path p1 contains the path p2. */
Returns 1 if the path p1 contains the path p2.
Returns 1 if the path p1 contains the path p2 .
int
devfs_pathpath(const char *p1, const char *p2)
{
	for (;;p1++, p2++) {
		if (*p1 != *p2) {
			if (*p1 == '/' && *p2 == '\0')
				return (1);
			else
				return (0);
		} else if (*p1 == '\0')
			return (1);
	}
}
int devfs_pathpath ( const char * p1 , const char * p2 ) { for ( ; ; p1 ++ , p2 ++ ) { if ( * p1 != * p2 ) { if ( * p1 == ' ' && * p2 == ' \0 ' ) return ( 1 ) ; else return ( 0 ) ; } else if ( * p1 == ' \0 ' ) return ( 1 ) ; } }
Returns 1 if the path p1 contains the path p2.
Returns 1 if the path p1 contains the path p2 .
/* NOTREACHED */