bug-apl
[Top][All Lists]
Advanced

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

Re: libapl apl_exec results displayed as ?


From: Chris Moller
Subject: Re: libapl apl_exec results displayed as ?
Date: Sun, 24 Jul 2022 17:16:10 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

apl_exec() can output to both stdout and stderr.

I use:


     std::stringstream outbuffer;
     std::streambuf *coutbuf = std::cout.rdbuf();
     std::cout.rdbuf(outbuffer.rdbuf());
     std::stringstream errbuffer;
     std::streambuf *cerrbuf = std::cerr.rdbuf();
     std::cerr.rdbuf(errbuffer.rdbuf());
     execerr = apl_exec (cmd.toStdString ().c_str ());
     std::cout.rdbuf(coutbuf);
     std::cerr.rdbuf(cerrbuf);
     outString = QString (outbuffer.str ().c_str ());
     errString = QString (errbuffer.str ().c_str ());

On 7/24/22 16:12, enztec@gmx.com wrote:
hello

What does libapl output?- the apl_exec function returns 0 to stdout but what is the actual display?

for example  apl_exec('⍳20')  what/where is the 1 to 20 displayed so it can be captured?

thanks


Attachment: OpenPGP_0xDA6C01938888083E.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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