/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
int getnetgrent_r(char ** hostp, char ** userp, char ** domainp, char *buffer, size_t buflen) {
    void *fptr;
    int retval;

    fptr = dlsym(_ChNetdb_handle, "getnetgrent_r_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return -1;
    }
    dlrunfun(fptr, &retval,getnetgrent_r, hostp, userp, domainp, buffer, buflen);
    return retval;
}
