FreeBSD/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c
/* return -1 at failed, 0 at not found, 1 at found. */
1 at failed, 0 at not found, 1 at found.
1 at failed 0 at not found 1 at found .
static int
vector_read_cmd_find(struct vector_read_cmd *v, enum read_cmd dst)
{
	size_t i;
	if (v == NULL || dst == READ_FAIL)
		return (-1);
	for (i = 0; i < v->size; ++i)
		if (v->r_container[i] == dst)
			return (1);
	return (0);
}
static int vector_read_cmd_find ( struct vector_read_cmd * v , enum read_cmd dst ) { size_t i ; if ( v == NULL || dst == READ_FAIL ) return ( -1 ) ; for ( i = 0 ; i < v -> size ; ++ i ) if ( v -> r_container [ i ] == dst ) return ( 1 ) ; return ( 0 ) ; }
return -1 at failed, 0 at not found, 1 at found.
return - 1 at failed 0 at not found 1 at found .