direct.c
/* Compare two box indices within a box descriptor structure. */
Compare two box indices within a box descriptor structure.
Compare two box indices within a box descriptor structure .
int boxcomp (const void *vl, const void *vr) {
	boxdesc *bl = (boxdesc *)vl, *br = (boxdesc *)vr;
	if (bl->index[0] != br->index[0]) return bl->index[0] - br->index[0];
	if (bl->index[1] != br->index[1]) return bl->index[1] - br->index[1];
	return bl->index[2] - br->index[2];
}
int boxcomp ( const void * vl , const void * vr ) { boxdesc * bl = ( boxdesc * ) vl , * br = ( boxdesc * ) vr ; if ( bl -> index [ 0 ] != br -> index [ 0 ] ) return bl -> index [ 0 ] - br -> index [ 0 ] ; if ( bl -> index [ 1 ] != br -> index [ 1 ] ) return bl -> index [ 1 ] - br -> index [ 1 ] ; return bl -> index [ 2 ] - br -> index [ 2 ] ; }
Compare two box indices within a box descriptor structure.
Compare two box indices within a box descriptor structure .