/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <readline/readline.h>

char *readline(const char *prompt) {
    void *fptr;
    char * retval;

    fptr = dlsym(_ChReadlineReadline_handle, "readline_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return NULL;
    }
    dlrunfun(fptr, &retval, readline, prompt);
    return retval;
}
