FreeBSD/lib/libvmmapi/vmmapi.c
/*
 * Return 0 if the segments are identical and non-zero otherwise.
 *
 * This is slightly complicated by the fact that only device memory segments
 * are named.
 */
Return 0 if the segments are identical and non-zero otherwise.
This is slightly complicated by the fact that only device memory segments
are named.
Return 0 if the segments are identical and non - zero otherwise . This is slightly complicated by the fact that only device memory segments are named .
static int
cmpseg(size_t len, const char *str, size_t len2, const char *str2)
{
	if (len == len2) {
		if ((!str && !str2) || (str && str2 && !strcmp(str, str2)))
			return (0);
	}
	return (-1);
}
static int cmpseg ( size_t len , const char * str , size_t len2 , const char * str2 ) { if ( len == len2 ) { if ( ( ! str && ! str2 ) || ( str && str2 && ! strcmp ( str , str2 ) ) ) return ( 0 ) ; } return ( -1 ) ; }
Return 0 if the segments are identical and non-zero otherwise.
Return 0 if the segments are identical and non - zero otherwise .