[Ecls-list] Printing to a string

David Creelman dave at geko.net.au
Sun Jan 15 19:53:03 UTC 2006


Hi,

I'm wanting to generically print an atom, symbol, list, string, etc out
to a string that I can then display on the screen (a la REPL).

I thought cl_print would do this for me, but ECL crashes when I call the
following:-

	cl_object myarray = c_string_to_object("#(1 2 3)");
	cl_object cl_str = cl_print(1, myarray);	// This crashes.
	str = ecl_string_pointer_safe(cl_str);

What am I doing wrong here ?

Can this be done or should I be doing my own interpretation of types ?

Regards
David

-- 
David Creelman
GPG: 11CC 0D54 D37A 4B9C 5C65  AB63 5B18 7F99 7D77 9CA5




More information about the ecl-devel mailing list