On Fri, 7 Sep 2018 18:06:51 -0700, Charles Mills wrote:
>
>Something like system("bpxmtext %x") where I substitute the errno2() value
>into the message. But (1) I read a warning about having to allocate stdin
>and so forth, and (2) I would like to capture the output. I suspect those
>two issues have the same solution, and perhaps someone could point me in the
>right direction?
>
(on further review:)

How about popen( "bpxmtext </dev/null 2>&1" ) and read the text from the
FILE* returned?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to