Being some combination of sadistic and masochistic, I'm trying to use the libapl library using the libapl.h API

libapl.h says

   /// Pass `command` to the command processor and return its output.
   extern const char * apl_command(const char * command_utf8);

but when I do

   const char *rc = apl_command (")load workspace");

it dumps

   SAVED 2020-12-30 17:18:13 (GMT-4)

to stdout and rc is empty.

Am I doing something wrong, or am I trying to do something APL was never intended to do?  I'd like to be able to capture everything libapl says and not have it go to stdout/stderr.

--cm

Reply via email to