/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <regex.h>
char *re_comp(const char *sp) {
    void *fptr; 
    char *retval;
   
    fprintf(_stderr, "Warning: %s(sp) is obsolete, use regcomp(sp, NULL)\n", __func__);
    fptr = dlsym(_ChRegex_handle, "re_comp_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return NULL;
    }
    dlrunfun(fptr, &retval, re_comp, sp);
    return retval;
}
