[Ecls-list] How to print an object into a C string?

Alfred Steffens Jr apsteffe at netwood.net
Fri Jan 25 16:59:51 UTC 2013


I want to print the result of an eval to a C string buffer:

void eval_command (char *command_string)
{
        char buffer[128];
        cl_object form, result;

        form = c_string_to_object(command_string);

        result = cl_safe_eval(form, Cnil, Cnil);

        /*
            Instead of using  princ(1,result) to stdout, I want a 
princ() into buffer[].
        */
}


Al





More information about the ecl-devel mailing list