/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <regex.h>
int regcomp(regex_t *preg, const char *pattern, int cflags) {
    void *fptr;
    int retval;
    
    fptr = dlsym(_ChRegex_handle, "regcomp_chdl");
    if(fptr == NULL) { 
        printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, regcomp, preg, pattern, cflags);
    return retval;
}
