bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libapl question


From: Chris Moller
Subject: libapl question
Date: Thu, 31 Dec 2020 14:59:04 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

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

[Prev in Thread] Current Thread [Next in Thread]