#include "vec.h" size_t vec_diffi(size_t typesize, vec_type const* v0, vec_type const* v1) { size_t i=0; while (i!=v0->len && i!=v1->len && v0->s[i]==v1->s[i]) ++i; return i/typesize; }