/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <regex.h>
int re_exec(char *s) {
    void *fptr;
    int retval;

    fprintf(_stderr, "Warning: %s(s) is obsolete, use regexe(return_value_from_regcomp(sp,NULL), s, NULL)\n", __func__);
    fptr = dlsym(_ChRegex_handle, "re_exec_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return -1;
    }
    dlrunfun(fptr, &retval, re_exec, s);
    return retval;
}
