CvSeq* cvEndWriteSeq(CvSeqWriter* writer) {
    void *fptr;
    CvSeq*retval;

    fptr = dlsym(_Chcv_handle, "cvEndWriteSeq_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvEndWriteSeq, writer);
    return retval;
}
