vector_compare, _vector_compare - compare two vectors |
#include <vector.h> #define vector_compare(v1,v2,compare_fn) _vector_compare ((v1), (v2), (int (*)(const void *,const void *)) (compare_fn)) int _vector_compare (vector, vector, int (*compare_fn) (const void *, const void *)); |
Compare two vectors. This returns 0 if the two vectors are identical. It returns > 0 if v1 > v2. This returns < 0 if v1 < v2. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |