/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <regex.h>
int  regexec(const regex_t *reg, const char *string, size_t nmatch,
				regmatch_t pmatch[], int eflags) {
    void *fptr;
    int retval;
    
    fptr = dlsym(_ChRegex_handle, "regexec_chdl");
    if(fptr == NULL) { 
        printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, regexec,reg, string, nmatch, pmatch, eflags);
    return retval;
}
