/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <regex.h>
void regfree(regex_t *preg) {
    void *fptr;

    fptr = dlsym(_ChRegex_handle, "regfree_chdl");
    if(fptr == NULL) { 
        printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
    }
    dlrunfun(fptr, NULL, regfree, preg);
}
